aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/YulOptimizerTest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-11 23:14:59 +0800
committerchriseth <chris@ethereum.org>2018-10-12 00:41:26 +0800
commit9cd577abe9d6a04147160ec2b14988dc5b4f5a28 (patch)
tree533ea1b7b6037daab2780bbd79e4a091aabb44df /test/libjulia/YulOptimizerTest.cpp
parent83ab8e7f7897d87e90e534e3272e916f714a9727 (diff)
downloaddexon-solidity-9cd577abe9d6a04147160ec2b14988dc5b4f5a28.tar.gz
dexon-solidity-9cd577abe9d6a04147160ec2b14988dc5b4f5a28.tar.zst
dexon-solidity-9cd577abe9d6a04147160ec2b14988dc5b4f5a28.zip
Move tests for full inliner.
Diffstat (limited to 'test/libjulia/YulOptimizerTest.cpp')
-rw-r--r--test/libjulia/YulOptimizerTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libjulia/YulOptimizerTest.cpp b/test/libjulia/YulOptimizerTest.cpp
index 878f1297..9f028bcd 100644
--- a/test/libjulia/YulOptimizerTest.cpp
+++ b/test/libjulia/YulOptimizerTest.cpp
@@ -28,6 +28,7 @@
#include <libjulia/optimiser/FunctionGrouper.h>
#include <libjulia/optimiser/FunctionHoister.h>
#include <libjulia/optimiser/ExpressionInliner.h>
+#include <libjulia/optimiser/FullInliner.h>
#include <libsolidity/parsing/Scanner.h>
#include <libsolidity/inlineasm/AsmPrinter.h>
@@ -113,6 +114,13 @@ bool YulOptimizerTest::run(ostream& _stream, string const& _linePrefix, bool con
disambiguate();
ExpressionInliner(*m_ast).run();
}
+ else if (m_optimizerStep == "fullInliner")
+ {
+ disambiguate();
+ (FunctionHoister{})(*m_ast);
+ (FunctionGrouper{})(*m_ast);
+ FullInliner(*m_ast).run();
+ }
else
{
FormattedScope(_stream, _formatted, {formatting::BOLD, formatting::RED}) << _linePrefix << "Invalid optimizer step: " << m_optimizerStep << endl;