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

15 lines
332 B
Plaintext
Raw Normal View History

{
// Constants cost depending on their magnitude.
// Do not rematerialize large constants,
// unless they are used exactly once.
let a := 0xffffffffffffffffffffff
mstore(0, a)
}
2019-04-01 14:33:46 +00:00
// ====
// step: rematerialiser
// ----
// {
// let a := 0xffffffffffffffffffffff
// mstore(0, 0xffffffffffffffffffffff)
// }