about summary refs log tree commit diff
path: root/tests/mir-opt/early_otherwise_branch.target_self.EarlyOtherwiseBranch.diff
blob: 4f70847bcdf88df42f7e5a5cbf5bed048683d5aa (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
- // MIR for `target_self` before EarlyOtherwiseBranch
+ // MIR for `target_self` after EarlyOtherwiseBranch
  
  fn target_self(_1: i32) -> () {
      let mut _0: ();
+     let mut _2: bool;
  
      bb0: {
          goto -> bb1;
      }
  
      bb1: {
-         switchInt(copy _1) -> [0: bb2, otherwise: bb1];
+         _2 = Ne(copy _1, copy _1);
+         switchInt(move _2) -> [0: bb3, otherwise: bb1];
      }
  
      bb2: {
-         switchInt(copy _1) -> [0: bb3, otherwise: bb1];
+         return;
      }
  
      bb3: {
-         return;
+         switchInt(copy _1) -> [0: bb2, otherwise: bb1];
      }
  }