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
2.6 KiB
Rust
Raw Normal View History

2020-04-02 16:09:01 -05:00
// MIR for `main` after SimplifyCfg-initial
fn main() -> () {
2022-11-02 16:54:49 -05:00
let mut _0: (); // return place in scope 0 at $DIR/issue_38669.rs:+0:11: +0:11
let mut _1: bool; // in scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
let mut _2: (); // in scope 0 at $DIR/issue_38669.rs:+0:1: +8:2
let _3: (); // in scope 0 at $DIR/issue_38669.rs:+3:9: +5:10
let mut _4: bool; // in scope 0 at $DIR/issue_38669.rs:+3:12: +3:24
let mut _5: !; // in scope 0 at $DIR/issue_38669.rs:+3:25: +5:10
2020-04-02 16:09:01 -05:00
scope 1 {
2022-11-02 16:54:49 -05:00
debug should_break => _1; // in scope 1 at $DIR/issue_38669.rs:+1:9: +1:25
2020-04-02 16:09:01 -05:00
}
bb0: {
2022-11-02 16:54:49 -05:00
StorageLive(_1); // scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
_1 = const false; // scope 0 at $DIR/issue_38669.rs:+1:28: +1:33
FakeRead(ForLet(None), _1); // scope 0 at $DIR/issue_38669.rs:+1:9: +1:25
goto -> bb1; // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb1: {
2023-04-05 03:17:40 -05:00
falseUnwind -> [real: bb2, unwind: bb5]; // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
2020-04-02 16:09:01 -05:00
}
bb2: {
2022-11-02 16:54:49 -05:00
StorageLive(_3); // scope 1 at $DIR/issue_38669.rs:+3:9: +5:10
StorageLive(_4); // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
_4 = _1; // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
switchInt(move _4) -> [0: bb4, otherwise: bb3]; // scope 1 at $DIR/issue_38669.rs:+3:12: +3:24
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb3: {
2022-11-02 16:54:49 -05:00
_0 = const (); // scope 1 at $DIR/issue_38669.rs:+4:13: +4:18
StorageDead(_4); // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
StorageDead(_3); // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
StorageDead(_1); // scope 0 at $DIR/issue_38669.rs:+8:1: +8:2
return; // scope 0 at $DIR/issue_38669.rs:+8:2: +8:2
2020-04-02 16:09:01 -05:00
}
2020-10-02 15:11:24 -05:00
bb4: {
2022-11-02 16:54:49 -05:00
_3 = const (); // scope 1 at $DIR/issue_38669.rs:+5:10: +5:10
StorageDead(_4); // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
StorageDead(_3); // scope 1 at $DIR/issue_38669.rs:+5:9: +5:10
_1 = const true; // scope 1 at $DIR/issue_38669.rs:+6:9: +6:28
_2 = const (); // scope 1 at $DIR/issue_38669.rs:+2:10: +7:6
goto -> bb1; // scope 1 at $DIR/issue_38669.rs:+2:5: +7:6
2020-04-02 16:09:01 -05:00
}
2021-01-01 12:38:11 -06:00
bb5 (cleanup): {
2022-11-02 16:54:49 -05:00
resume; // scope 0 at $DIR/issue_38669.rs:+0:1: +8:2
2020-10-02 15:11:24 -05:00
}
2020-04-02 16:09:01 -05:00
}