summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff
blob: 94d3ce6c97158d73eb8c2c1ec46d6a8af8228d72 (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
30
31
32
- // MIR for `exhaustive_match_i8` before MatchBranchSimplification
+ // MIR for `exhaustive_match_i8` after MatchBranchSimplification
  
  fn exhaustive_match_i8(_1: E) -> i8 {
      debug e => _1;
      let mut _0: i8;
      let mut _2: isize;
  
      bb0: {
          _2 = discriminant(_1);
          switchInt(move _2) -> [0: bb3, 1: bb1, otherwise: bb2];
      }
  
      bb1: {
          _0 = const 1_i8;
          goto -> bb4;
      }
  
      bb2: {
          unreachable;
      }
  
      bb3: {
          _0 = const 0_i8;
          goto -> bb4;
      }
  
      bb4: {
          return;
      }
  }