rust/tests/mir-opt/simplify_match.main.ConstProp.panic-unwind.diff

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

31 lines
528 B
Diff
Raw Normal View History

- // MIR for `main` before ConstProp
+ // MIR for `main` after ConstProp
2020-04-02 21:09:01 +00:00
fn main() -> () {
2023-06-06 13:47:00 +00:00
let mut _0: ();
let mut _1: bool;
let _2: bool;
2020-04-02 21:09:01 +00:00
scope 1 {
2023-06-06 13:47:00 +00:00
debug x => _2;
2020-04-02 21:09:01 +00:00
}
bb0: {
2023-06-06 13:47:00 +00:00
_2 = const false;
- switchInt(_2) -> [0: bb1, otherwise: bb2];
+ switchInt(const false) -> [0: bb1, otherwise: bb2];
2020-04-02 21:09:01 +00:00
}
bb1: {
2023-06-06 13:47:00 +00:00
goto -> bb3;
2020-04-02 21:09:01 +00:00
}
bb2: {
2023-06-06 13:47:00 +00:00
_0 = noop() -> bb3;
2020-04-02 21:09:01 +00:00
}
bb3: {
2023-06-06 13:47:00 +00:00
return;
2020-04-02 21:09:01 +00:00
}
}