diff --git a/libyul/optimiser/Suite.cpp b/libyul/optimiser/Suite.cpp index f07a16c83..af9c93715 100644 --- a/libyul/optimiser/Suite.cpp +++ b/libyul/optimiser/Suite.cpp @@ -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) {