Add FunctionHoister as a pre-requisite for equal store eliminator.

This commit is contained in:
Bhargava Shastry 2022-01-06 14:16:02 +01:00
parent 63b6bbe15c
commit 2c7aed1d7e

View File

@ -239,6 +239,7 @@ YulOptimizerTestCommon::YulOptimizerTestCommon(
}},
{"equalStoreEliminator", [&]() {
disambiguate();
FunctionHoister::run(*m_context, *m_ast);
ForLoopInitRewriter::run(*m_context, *m_ast);
EqualStoreEliminator::run(*m_context, *m_ast);
}},