aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/rematerialiser/reassignment.yul
blob: 13238780f97a1e5d1c504f8b732d9c49bfc57962 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
    let a := 1
    pop(a)
    if a { a := 2 }
    let b := mload(a)
    pop(b)
}
// ----
// rematerialiser
// {
//     let a := 1
//     pop(1)
//     if 1
//     {
//         a := 2
//     }
//     let b := mload(a)
//     pop(b)
// }