Allow msize optimization only if it is not present.

This commit is contained in:
chriseth
2019-05-28 12:54:32 +02:00
parent afe887adc1
commit d7b5ea6761
10 changed files with 100 additions and 17 deletions
@@ -0,0 +1,12 @@
{
let a := 1
let b := mload(10)
sstore(0, msize())
}
// ====
// step: unusedPruner
// ----
// {
// pop(mload(10))
// sstore(0, msize())
// }
@@ -0,0 +1,9 @@
{
let a := 1
let b := mload(10)
sstore(0, 5)
}
// ====
// step: unusedPruner
// ----
// { sstore(0, 5) }