Merge pull request #9972 from ethereum/alwaysRunFunctionHoister

Always run the FunctionHoister as part of the optimizer Suite.
This commit is contained in:
chriseth 2020-10-07 10:48:10 +02:00 committed by GitHub
commit 19a835bfc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);