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

21 lines
276 B
Plaintext
Raw Normal View History

2018-10-11 15:59:45 +00:00
// Cannot replace `let b := x` by `let b := a` since a is out of scope.
{
let x
{
let a := sload(0)
x := a
}
let b := x
}
2019-04-01 14:33:46 +00:00
// ====
// step: rematerialiser
2018-10-11 15:59:45 +00:00
// ----
// {
// let x
// {
// let a := sload(0)
// x := a
// }
// let b := x
// }