aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/fullSuite/medium.yul
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2019-01-07 21:23:40 +0800
committerGitHub <noreply@github.com>2019-01-07 21:23:40 +0800
commit3631df5d883f0b3465dc8400067e28e206f05d57 (patch)
tree5ff8de0f92939071acd00ff22b02591cd18ec2ae /test/libyul/yulOptimizerTests/fullSuite/medium.yul
parent64027265ab0eb5cd326ef2d884acb08f322697e2 (diff)
parent2e9c70add0490a5157f393c78e29bb86f67111d7 (diff)
downloaddexon-solidity-3631df5d883f0b3465dc8400067e28e206f05d57.tar.gz
dexon-solidity-3631df5d883f0b3465dc8400067e28e206f05d57.tar.zst
dexon-solidity-3631df5d883f0b3465dc8400067e28e206f05d57.zip
Merge pull request #5620 from ethereum/rematOnlyOne
[Yul] Use rematerializer if variable is only referenced once or value is "cheap".
Diffstat (limited to 'test/libyul/yulOptimizerTests/fullSuite/medium.yul')
-rw-r--r--test/libyul/yulOptimizerTests/fullSuite/medium.yul5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libyul/yulOptimizerTests/fullSuite/medium.yul b/test/libyul/yulOptimizerTests/fullSuite/medium.yul
index fbe243d4..5578452a 100644
--- a/test/libyul/yulOptimizerTests/fullSuite/medium.yul
+++ b/test/libyul/yulOptimizerTests/fullSuite/medium.yul
@@ -20,12 +20,11 @@
// fullSuite
// {
// {
-// let _1 := 0x20
// let allocate__19 := 0x40
-// mstore(allocate__19, add(mload(allocate__19), _1))
+// mstore(allocate__19, add(mload(allocate__19), 0x20))
// let allocate_p_24_41 := mload(allocate__19)
// mstore(allocate__19, add(allocate_p_24_41, allocate__19))
// mstore(add(allocate_p_24_41, 96), 2)
-// mstore(allocate__19, _1)
+// mstore(allocate__19, 0x20)
// }
// }