Merge pull request #10414 from ethereum/noEmptyStableRun

Abort early if the optimizer sequence is empty.
This commit is contained in:
chriseth
2020-11-26 17:16:21 +01:00
committed by GitHub
+3
View File
@@ -364,6 +364,9 @@ void OptimiserSuite::runSequenceUntilStable(
size_t maxRounds
)
{
if (_steps.empty())
return;
size_t codeSize = 0;
for (size_t rounds = 0; rounds < maxRounds; ++rounds)
{