aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/YulOptimizerTest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2019-01-16 18:47:57 +0800
committerGitHub <noreply@github.com>2019-01-16 18:47:57 +0800
commit778b14de260a7eeaea88867e39cfc226f1494e63 (patch)
tree9f6c74591bba65109037911c8752d9a9d8ba59c5 /test/libyul/YulOptimizerTest.cpp
parent82453a76a3b080c9ac467e9f98c7f82809db8c1e (diff)
parent81f24f24e6d827d45b1ae1b22e88388d30db3dd0 (diff)
downloaddexon-solidity-778b14de260a7eeaea88867e39cfc226f1494e63.tar.gz
dexon-solidity-778b14de260a7eeaea88867e39cfc226f1494e63.tar.zst
dexon-solidity-778b14de260a7eeaea88867e39cfc226f1494e63.zip
Merge pull request #5776 from ethereum/equivalentFunctionCombiner
[Yul] Equivalent function combiner.
Diffstat (limited to 'test/libyul/YulOptimizerTest.cpp')
-rw-r--r--test/libyul/YulOptimizerTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libyul/YulOptimizerTest.cpp b/test/libyul/YulOptimizerTest.cpp
index 0e3203cb..59cde4fe 100644
--- a/test/libyul/YulOptimizerTest.cpp
+++ b/test/libyul/YulOptimizerTest.cpp
@@ -26,6 +26,7 @@
#include <libyul/optimiser/Disambiguator.h>
#include <libyul/optimiser/CommonSubexpressionEliminator.h>
#include <libyul/optimiser/NameCollector.h>
+#include <libyul/optimiser/EquivalentFunctionCombiner.h>
#include <libyul/optimiser/ExpressionSplitter.h>
#include <libyul/optimiser/FunctionGrouper.h>
#include <libyul/optimiser/FunctionHoister.h>
@@ -217,6 +218,11 @@ bool YulOptimizerTest::run(ostream& _stream, string const& _linePrefix, bool con
disambiguate();
StructuralSimplifier{*m_dialect}(*m_ast);
}
+ else if (m_optimizerStep == "equivalentFunctionCombiner")
+ {
+ disambiguate();
+ EquivalentFunctionCombiner::run(*m_ast);
+ }
else if (m_optimizerStep == "fullSuite")
OptimiserSuite::run(*m_dialect, *m_ast, *m_analysisInfo);
else