aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/yulOptimizerTests/expressionJoiner/only_assignment.yul
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/yulOptimizerTests/expressionJoiner/only_assignment.yul
parent93cf718367e975e90ca0bb0562bde16ac6897046 (diff)
parentd60a2511fdc625928b5a2ee449e39ba78a3d1296 (diff)
downloaddexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar.gz
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.tar.zst
dexon-solidity-26dc876c28718613ad64961e65374ace1139010b.zip
Merge pull request #5127 from ethereum/exprUnbreaker
[Yul] Expression joiner.
Diffstat (limited to 'test/libjulia/yulOptimizerTests/expressionJoiner/only_assignment.yul')
-rw-r--r--test/libjulia/yulOptimizerTests/expressionJoiner/only_assignment.yul16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/libjulia/yulOptimizerTests/expressionJoiner/only_assignment.yul b/test/libjulia/yulOptimizerTests/expressionJoiner/only_assignment.yul
new file mode 100644
index 00000000..c7411211
--- /dev/null
+++ b/test/libjulia/yulOptimizerTests/expressionJoiner/only_assignment.yul
@@ -0,0 +1,16 @@
+{
+ // This is not joined because a is referenced multiple times
+ function f(a) -> x {
+ a := mload(2)
+ x := add(a, 3)
+ }
+}
+// ----
+// expressionJoiner
+// {
+// function f(a) -> x
+// {
+// a := mload(2)
+// x := add(a, 3)
+// }
+// }