about summary refs log tree commit diff
path: root/tests/mir-opt/copy-prop/non_dominate.f.CopyProp.diff
blob: 6955d694e5ab27c850ddbe688017bd1be32d7a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- // MIR for `f` before CopyProp
+ // MIR for `f` after CopyProp
  
  fn f(_1: bool) -> bool {
      let mut _0: bool;
      let mut _2: bool;
      let mut _3: bool;
  
      bb0: {
          goto -> bb1;
      }
  
      bb1: {
          _3 = copy _1;
          switchInt(copy _3) -> [0: bb3, otherwise: bb2];
      }
  
      bb2: {
          _2 = copy _3;
          _1 = const false;
          goto -> bb1;
      }
  
      bb3: {
          _0 = copy _2;
          return;
      }
  }