diff options
author | chriseth <chris@ethereum.org> | 2018-10-28 19:58:21 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-09 01:14:36 +0800 |
commit | fa44d2072116fa818282a173f011b30d61c89995 (patch) | |
tree | 4dc78dca786b550875584519240690997f6a9955 /test | |
parent | 20481055e3b439657bd44ea66b05a633477eeaf8 (diff) | |
download | dexon-solidity-fa44d2072116fa818282a173f011b30d61c89995.tar.gz dexon-solidity-fa44d2072116fa818282a173f011b30d61c89995.tar.zst dexon-solidity-fa44d2072116fa818282a173f011b30d61c89995.zip |
Remove side-effect-free statements.
Diffstat (limited to 'test')
-rw-r--r-- | test/libyul/yulOptimizerTests/fullSuite/medium.yul | 4 | ||||
-rw-r--r-- | test/libyul/yulOptimizerTests/unusedPruner/pop.yul | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/test/libyul/yulOptimizerTests/fullSuite/medium.yul b/test/libyul/yulOptimizerTests/fullSuite/medium.yul index 47812fa8..deb02068 100644 --- a/test/libyul/yulOptimizerTests/fullSuite/medium.yul +++ b/test/libyul/yulOptimizerTests/fullSuite/medium.yul @@ -16,9 +16,7 @@ // { // let _18 := 0x20 // let allocate__7 := 0x40 -// let allocate_p_12 := mload(allocate__7) -// mstore(allocate__7, add(allocate_p_12, _18)) -// pop(allocate_p_12) +// mstore(allocate__7, add(mload(allocate__7), _18)) // let allocate_p_12_31 := mload(allocate__7) // mstore(allocate__7, add(allocate_p_12_31, allocate__7)) // mstore(add(allocate_p_12_31, 96), 2) diff --git a/test/libyul/yulOptimizerTests/unusedPruner/pop.yul b/test/libyul/yulOptimizerTests/unusedPruner/pop.yul new file mode 100644 index 00000000..542070f9 --- /dev/null +++ b/test/libyul/yulOptimizerTests/unusedPruner/pop.yul @@ -0,0 +1,8 @@ +{ + let a := 1 + pop(a) +} +// ---- +// unusedPruner +// { +// } |