2024-07-27 14:36:17 +08:00
|
|
|
- // MIR for `assert_zero` before InstSimplify-after-simplifycfg
|
|
|
|
+ // MIR for `assert_zero` after InstSimplify-after-simplifycfg
|
2023-02-24 16:32:59 -05:00
|
|
|
|
|
|
|
fn assert_zero(_1: u8) -> u8 {
|
2023-06-06 09:47:00 -04:00
|
|
|
let mut _0: u8;
|
2023-02-24 16:32:59 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 09:47:00 -04:00
|
|
|
- switchInt(copy _1) -> [0: bb2, 1: bb1, otherwise: bb1];
|
|
|
|
+ switchInt(copy _1) -> [0: bb2, otherwise: bb1];
|
2023-02-24 16:32:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 09:47:00 -04:00
|
|
|
unreachable;
|
2023-02-24 16:32:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 09:47:00 -04:00
|
|
|
_0 = copy _1;
|
|
|
|
return;
|
2023-02-24 16:32:59 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|