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

16 lines
220 B
Plaintext
Raw Normal View History

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