From f705a45d43d69ca4f29bd496d091f7237bdc31ff Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Wed, 7 Nov 2018 11:18:02 +0100 Subject: [Yul] Implements a pass to rewrite for-loop's pre block into the parent's Block. --- test/libyul/YulOptimizerTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/libyul/YulOptimizerTest.cpp') diff --git a/test/libyul/YulOptimizerTest.cpp b/test/libyul/YulOptimizerTest.cpp index 03cd6446..9e257717 100644 --- a/test/libyul/YulOptimizerTest.cpp +++ b/test/libyul/YulOptimizerTest.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -108,6 +109,11 @@ bool YulOptimizerTest::run(ostream& _stream, string const& _linePrefix, bool con disambiguate(); VarDeclPropagator{}(*m_ast); } + else if (m_optimizerStep == "forLoopInitRewriter") + { + disambiguate(); + ForLoopInitRewriter{}(*m_ast); + } else if (m_optimizerStep == "commonSubexpressionEliminator") { disambiguate(); -- cgit