summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/copy-prop/calls.multiple_edges.CopyProp.diff
blob: 4d56a8b25d360e83f1cfd71b25329d90a8a744d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- // MIR for `multiple_edges` before CopyProp
+ // MIR for `multiple_edges` after CopyProp
  
  fn multiple_edges(_1: bool) -> u8 {
      let mut _0: u8;
      let mut _2: u8;
  
      bb0: {
          switchInt(_1) -> [1: bb1, otherwise: bb2];
      }
  
      bb1: {
          _2 = dummy(const 13_u8) -> [return: bb2, unwind continue];
      }
  
      bb2: {
          _0 = _2;
          return;
      }
  }