rust/tests/mir-opt/simplify_match.main.ConstPr...

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

31 lines
555 B
Diff
Raw Normal View History

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