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

21 lines
271 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
}
// ----
// step: rematerialiser
//
2018-10-11 15:59:45 +00:00
// {
// let x
// {
// let a := sload(0)
// x := a
// }
// let b := x
// }