aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/YulOptimizerTest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-11 22:58:21 +0800
committerchriseth <chris@ethereum.org>2018-10-12 00:41:26 +0800
commit83ab8e7f7897d87e90e534e3272e916f714a9727 (patch)
tree8ecae98a9fb4e0ac8be1a15a68c4f68b81e1216b /test/libjulia/YulOptimizerTest.cpp
parent7a34fc12915d9c6ce0a126a5c283c107a25c41dd (diff)
downloaddexon-solidity-83ab8e7f7897d87e90e534e3272e916f714a9727.tar.gz
dexon-solidity-83ab8e7f7897d87e90e534e3272e916f714a9727.tar.zst
dexon-solidity-83ab8e7f7897d87e90e534e3272e916f714a9727.zip
Move expression inliner tests.
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 1ac2ddf5..878f1297 100644
--- a/test/libjulia/YulOptimizerTest.cpp
+++ b/test/libjulia/YulOptimizerTest.cpp
@@ -27,6 +27,7 @@
#include <libjulia/optimiser/ExpressionSplitter.h>
#include <libjulia/optimiser/FunctionGrouper.h>
#include <libjulia/optimiser/FunctionHoister.h>
+#include <libjulia/optimiser/ExpressionInliner.h>
#include <libsolidity/parsing/Scanner.h>
#include <libsolidity/inlineasm/AsmPrinter.h>
@@ -107,6 +108,11 @@ bool YulOptimizerTest::run(ostream& _stream, string const& _linePrefix, bool con
disambiguate();
(FunctionHoister{})(*m_ast);
}
+ else if (m_optimizerStep == "expressionInliner")
+ {
+ disambiguate();
+ ExpressionInliner(*m_ast).run();
+ }
else
{
FormattedScope(_stream, _formatted, {formatting::BOLD, formatting::RED}) << _linePrefix << "Invalid optimizer step: " << m_optimizerStep << endl;