2023-05-26 13:47:51 -05:00
|
|
|
- // MIR for `test` before MatchBranchSimplification
|
|
|
|
+ // MIR for `test` after MatchBranchSimplification
|
|
|
|
|
|
|
|
fn test(_1: bool) -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
2023-05-26 13:47:51 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
goto -> bb1;
|
2023-05-26 13:47:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy _1) -> [0: bb1, otherwise: bb2];
|
2023-05-26 13:47:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-08-18 16:26:34 -05:00
|
|
|
switchInt(copy _1) -> [0: bb1, otherwise: bb2];
|
2023-05-26 13:47:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|