aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/expressionJoiner/no_replacement_across_blocks.yul
blob: a781bb2a7ef78a38fd8f09daa6d600d4701738cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
    // The component will remove the empty block after
    // it has handled the outer block.
    // The idea behind this test is that the component
    // does not perform replacements across blocks because
    // they usually have contents, but adding contents
    // will reduce the scope of the test.
    let a := mload(2)
    let x := calldataload(a)
    {
    }
    sstore(x, 3)
}
// ----
// expressionJoiner
// {
//     let x := calldataload(mload(2))
//     sstore(x, 3)
// }