rust/tests/mir-opt/switch_to_self.test.MatchBranchSimplification.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
376 B
Diff
Raw Normal View History

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