rust/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff

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

22 lines
438 B
Diff
Raw Normal View History

2021-12-01 02:54:37 +00:00
- // MIR for `main` before SimplifyConstCondition-after-const-prop
+ // MIR for `main` after SimplifyConstCondition-after-const-prop
2020-04-02 21:09:01 +00:00
fn main() -> () {
2023-06-06 13:47:00 +00:00
let mut _0: ();
let _1: ();
2020-04-02 21:09:01 +00:00
bb0: {
2024-01-07 00:30:08 +00:00
- switchInt(const false) -> [0: bb2, otherwise: bb1];
+ goto -> bb2;
2020-04-02 21:09:01 +00:00
}
bb1: {
_1 = noop() -> [return: bb2, unwind unreachable];
2020-04-02 21:09:01 +00:00
}
2021-01-01 18:38:11 +00:00
bb2: {
2023-06-06 13:47:00 +00:00
return;
2020-04-02 21:09:01 +00:00
}
}