rust/tests/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir

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

53 lines
908 B
Rust
Raw Normal View History

2020-04-02 21:09:01 +00:00
// MIR for `main` after SimplifyCfg-initial
fn main() -> () {
2023-06-06 13:47:00 +00:00
let mut _0: ();
let mut _1: bool;
let mut _2: ();
let _3: ();
let mut _4: bool;
let mut _5: !;
2020-04-02 21:09:01 +00:00
scope 1 {
2023-06-06 13:47:00 +00:00
debug should_break => _1;
2020-04-02 21:09:01 +00:00
}
bb0: {
2023-06-06 13:47:00 +00:00
StorageLive(_1);
_1 = const false;
FakeRead(ForLet(None), _1);
goto -> bb1;
2020-04-02 21:09:01 +00:00
}
2020-10-02 20:11:24 +00:00
bb1: {
2023-06-06 13:47:00 +00:00
falseUnwind -> [real: bb2, unwind: bb5];
2020-04-02 21:09:01 +00:00
}
bb2: {
2023-06-06 13:47:00 +00:00
StorageLive(_3);
StorageLive(_4);
_4 = _1;
switchInt(move _4) -> [0: bb4, otherwise: bb3];
2020-04-02 21:09:01 +00:00
}
2020-10-02 20:11:24 +00:00
bb3: {
2023-06-06 13:47:00 +00:00
_0 = const ();
StorageDead(_4);
StorageDead(_3);
StorageDead(_1);
return;
2020-04-02 21:09:01 +00:00
}
2020-10-02 20:11:24 +00:00
bb4: {
2023-06-06 13:47:00 +00:00
_3 = const ();
StorageDead(_4);
StorageDead(_3);
_1 = const true;
_2 = const ();
goto -> bb1;
2020-04-02 21:09:01 +00:00
}
2021-01-01 18:38:11 +00:00
bb5 (cleanup): {
2023-06-06 13:47:00 +00:00
resume;
2020-10-02 20:11:24 +00:00
}
2020-04-02 21:09:01 +00:00
}