mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Abort early if the optimizer sequence is empty.
This commit is contained in:
parent
39adbfc0cc
commit
ac9b31d623
@ -364,6 +364,9 @@ void OptimiserSuite::runSequenceUntilStable(
|
|||||||
size_t maxRounds
|
size_t maxRounds
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (_steps.empty())
|
||||||
|
return;
|
||||||
|
|
||||||
size_t codeSize = 0;
|
size_t codeSize = 0;
|
||||||
for (size_t rounds = 0; rounds < maxRounds; ++rounds)
|
for (size_t rounds = 0; rounds < maxRounds; ++rounds)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user