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