From 5442a7ade26276babd04e309aaa6fbbf3585ed2e Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Tue, 6 Oct 2020 22:27:20 +0200 Subject: [PATCH] Always run the FunctionHoister as part of the optimizer Suite. --- libyul/optimiser/Suite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libyul/optimiser/Suite.cpp b/libyul/optimiser/Suite.cpp index 11249c23d..3f311afe2 100644 --- a/libyul/optimiser/Suite.cpp +++ b/libyul/optimiser/Suite.cpp @@ -101,9 +101,9 @@ void OptimiserSuite::run( OptimiserSuite suite(_dialect, reservedIdentifiers, Debug::None, ast); - // Some steps depend on properties ensured by FunctionHoister, FunctionGrouper and + // Some steps depend on properties ensured by FunctionHoister, BlockFlattener, FunctionGrouper and // ForLoopInitRewriter. Run them first to be able to run arbitrary sequences safely. - suite.runSequence("fgo", ast); + suite.runSequence("hfgo", ast); // Now the user-supplied part suite.runSequence(_optimisationSequence, ast);