about summary refs log tree commit diff
path: root/tests/mir-opt/matches_reduce_branches.match_non_int_failed.MatchBranchSimplification.diff
blob: 81e900a34c08762ddf8ae408d6e9d9bb851d07e4 (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 `match_non_int_failed` before MatchBranchSimplification
+ // MIR for `match_non_int_failed` after MatchBranchSimplification
  
  fn match_non_int_failed(_1: char) -> u8 {
      let mut _0: u8;
  
      bb0: {
          switchInt(copy _1) -> [97: bb1, 98: bb2, otherwise: bb3];
      }
  
      bb1: {
          _0 = const 97_u8;
          goto -> bb4;
      }
  
      bb2: {
          _0 = const 98_u8;
          goto -> bb4;
      }
  
      bb3: {
          unreachable;
      }
  
      bb4: {
          return;
      }
  }