diff options
author | Christian Parpart <christian@parpart.family> | 2018-10-17 17:33:35 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-10-26 19:13:57 +0800 |
commit | f08ab772499923ccea29806525c7f2589bc5b343 (patch) | |
tree | 86a1aa93b0af67c528182858662a0b306743d189 /test/libyul/YulOptimizerTest.cpp | |
parent | 41375b5d79a77d392922f36f149d5bef269303e6 (diff) | |
download | dexon-solidity-f08ab772499923ccea29806525c7f2589bc5b343.tar.gz dexon-solidity-f08ab772499923ccea29806525c7f2589bc5b343.tar.zst dexon-solidity-f08ab772499923ccea29806525c7f2589bc5b343.zip |
Yul: Implements empty-var-decl-propagation
Diffstat (limited to 'test/libyul/YulOptimizerTest.cpp')
-rw-r--r-- | test/libyul/YulOptimizerTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libyul/YulOptimizerTest.cpp b/test/libyul/YulOptimizerTest.cpp index 0378764d..d455c892 100644 --- a/test/libyul/YulOptimizerTest.cpp +++ b/test/libyul/YulOptimizerTest.cpp @@ -22,6 +22,7 @@ #include <test/Options.h> #include <libyul/optimiser/BlockFlattener.h> +#include <libyul/optimiser/VarDeclPropagator.h> #include <libyul/optimiser/Disambiguator.h> #include <libyul/optimiser/CommonSubexpressionEliminator.h> #include <libyul/optimiser/NameCollector.h> @@ -102,6 +103,11 @@ bool YulOptimizerTest::run(ostream& _stream, string const& _linePrefix, bool con disambiguate(); BlockFlattener{}(*m_ast); } + else if (m_optimizerStep == "varDeclPropagator") + { + disambiguate(); + VarDeclPropagator{}(*m_ast); + } else if (m_optimizerStep == "commonSubexpressionEliminator") { disambiguate(); |