aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/rematerialiser/large_constant_used_once.yul
blob: b8a861aad977ecfb84ae49616356a38e39c39acb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{
    // Constants cost depending on their magnitude.
    // Do not rematerialize large constants,
    // unless they are used exactly once.
    let a := 0xffffffffffffffffffffff
    mstore(0, a)
}
// ----
// rematerialiser
// {
//     let a := 0xffffffffffffffffffffff
//     mstore(0, 0xffffffffffffffffffffff)
// }