Always run the FunctionHoister as part of the optimizer Suite.

This commit is contained in:
Daniel Kirchner 2020-10-06 22:27:20 +02:00
parent 25d408058b
commit 5442a7ade2

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