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
913 B
Rust
Raw Normal View History

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