solidity/test/libyul/yulOptimizerTests/rematerialiser/reassignment.yul

18 lines
227 B
Plaintext
Raw Normal View History

2018-10-11 15:59:45 +00:00
{
let a := 1
pop(a)
if a { a := 2 }
let b := mload(a)
pop(b)
}
2019-04-01 14:33:46 +00:00
// ====
// step: rematerialiser
2018-10-11 15:59:45 +00:00
// ----
// {
// let a := 1
// pop(1)
// if 1 { a := 2 }
2018-10-11 15:59:45 +00:00
// let b := mload(a)
// pop(b)
// }