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

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

47 lines
772 B
Rust
Raw Normal View History

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