summary refs log tree commit diff
path: root/tests/mir-opt/matches_reduce_branches.match_u8_i16_fallback.MatchBranchSimplification.diff
blob: 8fa497fe89002951a2402c614dd117a7f82c99d1 (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
- // MIR for `match_u8_i16_fallback` before MatchBranchSimplification
+ // MIR for `match_u8_i16_fallback` after MatchBranchSimplification
  
  fn match_u8_i16_fallback(_1: u8) -> i16 {
      debug i => _1;
      let mut _0: i16;
  
      bb0: {
          switchInt(_1) -> [1: bb2, 2: bb3, otherwise: bb1];
      }
  
      bb1: {
          _0 = const 3_i16;
          goto -> bb4;
      }
  
      bb2: {
          _0 = const 1_i16;
          goto -> bb4;
      }
  
      bb3: {
          _0 = const 2_i16;
          goto -> bb4;
      }
  
      bb4: {
          return;
      }
  }