2024-02-20 07:47:27 -06:00
|
|
|
- // MIR for `match_u8_u16` before MatchBranchSimplification
|
|
|
|
+ // MIR for `match_u8_u16` after MatchBranchSimplification
|
|
|
|
|
|
|
|
fn match_u8_u16(_1: EnumBu8) -> u16 {
|
|
|
|
debug i => _1;
|
|
|
|
let mut _0: u16;
|
|
|
|
let mut _2: u8;
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
_2 = discriminant(_1);
|
2024-04-19 07:54:25 -05:00
|
|
|
switchInt(move _2) -> [1: bb3, 2: bb4, 5: bb2, otherwise: bb1];
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
unreachable;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
|
|
|
_0 = const 5_u16;
|
|
|
|
goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
|
|
|
_0 = const 1_u16;
|
|
|
|
goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
|
|
|
_0 = const 2_u16;
|
|
|
|
goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
2024-02-20 07:47:27 -06:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|