mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #9972 from ethereum/alwaysRunFunctionHoister
Always run the FunctionHoister as part of the optimizer Suite.
This commit is contained in:
commit
19a835bfc9
@ -101,9 +101,9 @@ void OptimiserSuite::run(
|
|||||||
|
|
||||||
OptimiserSuite suite(_dialect, reservedIdentifiers, Debug::None, ast);
|
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.
|
// 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
|
// Now the user-supplied part
|
||||||
suite.runSequence(_optimisationSequence, ast);
|
suite.runSequence(_optimisationSequence, ast);
|
||||||
|
Loading…
Reference in New Issue
Block a user