aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/YulOptimizerTest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-12 23:10:44 +0800
committerGitHub <noreply@github.com>2018-10-12 23:10:44 +0800
commit26dc876c28718613ad64961e65374ace1139010b (patch)
tree1808fded479e99752bafa0d34b0bd6f1b9d0b96b /test/libjulia/YulOptimizerTest.cpp
parent93cf718367e975e90ca0bb0562bde16ac6897046 (diff)
parentd60a2511fdc625928b5a2ee449e39ba78a3d1296 (diff)
downloaddexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar.gz
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar.bz2
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar.lz
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar.xz
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar.zst
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.zip
Merge pull request #5127 from ethereum/exprUnbreaker
[Yul] Expression joiner.
Diffstat (limited to 'test/libjulia/YulOptimizerTest.cpp')
-rw-r--r--test/libjulia/YulOptimizerTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libjulia/YulOptimizerTest.cpp b/test/libjulia/YulOptimizerTest.cpp
index 96e36a5b..38765774 100644
--- a/test/libjulia/YulOptimizerTest.cpp
+++ b/test/libjulia/YulOptimizerTest.cpp
@@ -33,6 +33,7 @@
#include <libjulia/optimiser/Rematerialiser.h>
#include <libjulia/optimiser/ExpressionSimplifier.h>
#include <libjulia/optimiser/UnusedPruner.h>
+#include <libjulia/optimiser/ExpressionJoiner.h>
#include <libsolidity/parsing/Scanner.h>
#include <libsolidity/inlineasm/AsmPrinter.h>
@@ -146,6 +147,11 @@ bool YulOptimizerTest::run(ostream& _stream, string const& _linePrefix, bool con
disambiguate();
UnusedPruner::runUntilStabilised(*m_ast);
}
+ else if (m_optimizerStep == "expressionJoiner")
+ {
+ disambiguate();
+ ExpressionJoiner::run(*m_ast);\
+ }
else
{
FormattedScope(_stream, _formatted, {formatting::BOLD, formatting::RED}) << _linePrefix << "Invalid optimizer step: " << m_optimizerStep << endl;