Actually run FunctionHoister before the optimizer suite.

This commit is contained in:
Daniel Kirchner 2020-10-06 22:19:45 +02:00
parent bda2033dc4
commit 120851315a

View File

@ -103,7 +103,7 @@ void OptimiserSuite::run(
// Some steps depend on properties ensured by FunctionHoister, 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);