rust/tests/mir-opt/while_storage.while_loop.PreCodegen.after.panic-unwind.mir

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

47 lines
766 B
Rust
Raw Normal View History

2020-04-02 16:09:01 -05:00
// MIR for `while_loop` after PreCodegen
fn while_loop(_1: bool) -> () {
2023-06-06 08:47:00 -05:00
debug c => _1;
let mut _0: ();
let mut _2: bool;
let mut _3: bool;
2020-04-02 16:09:01 -05:00
bb0: {
2023-06-06 08:47:00 -05:00
goto -> bb1;
2021-09-17 19:00:00 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
2023-06-23 11:53:09 -05:00
_2 = get_bool(_1) -> [return: bb2, unwind continue];
2020-04-02 16:09:01 -05:00
}
2021-09-17 19:00:00 -05:00
bb2: {
2023-06-06 08:47:00 -05:00
switchInt(move _2) -> [0: bb7, otherwise: bb3];
2020-04-02 16:09:01 -05:00
}
2021-09-17 19:00:00 -05:00
bb3: {
2023-06-06 08:47:00 -05:00
StorageLive(_3);
2023-06-23 11:53:09 -05:00
_3 = get_bool(_1) -> [return: bb4, unwind continue];
2020-04-02 16:09:01 -05:00
}
2021-09-17 19:00:00 -05:00
bb4: {
2023-06-06 08:47:00 -05:00
switchInt(move _3) -> [0: bb5, otherwise: bb6];
2020-04-02 16:09:01 -05:00
}
2021-09-17 19:00:00 -05:00
bb5: {
2023-06-06 08:47:00 -05:00
StorageDead(_3);
StorageDead(_2);
goto -> bb1;
2021-08-08 09:49:13 -05:00
}
2021-09-17 19:00:00 -05:00
bb6: {
2023-06-06 08:47:00 -05:00
StorageDead(_3);
goto -> bb7;
2020-04-09 05:58:36 -05:00
}
2021-09-17 19:00:00 -05:00
bb7: {
2023-06-06 08:47:00 -05:00
StorageDead(_2);
return;
2020-04-02 16:09:01 -05:00
}
}