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

18 lines
311 B
Plaintext
Raw Normal View History

2019-11-27 09:44:40 +00:00
{
// Cost of rematerializating x is 1
let x := 0xff
// Reference to x is not rematerialized because the reference is in a loop
for {} lt(x, 0x100) {}
{
let y := add(x, 1)
}
}
// ----
// step: rematerialiser
//
2019-11-27 09:44:40 +00:00
// {
// let x := 0xff
2019-11-29 11:04:29 +00:00
// for { } lt(x, 0x100) { }
// { let y := add(x, 1) }
2019-11-27 09:44:40 +00:00
// }