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: {
|
2023-06-06 08:47:00 -05:00
|
|
|
switchInt(_1) -> [0: bb1, otherwise: bb2];
|
2023-05-26 13:47:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
switchInt(_1) -> [0: bb1, otherwise: bb2];
|
2023-05-26 13:47:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|