rust/tests/mir-opt/dead-store-elimination/cycle.cycle.DeadStoreElimination.panic-unwind.diff

74 lines
1.6 KiB
Diff
Raw Normal View History

2022-05-09 19:12:03 -05:00
- // MIR for `cycle` before DeadStoreElimination
+ // MIR for `cycle` after DeadStoreElimination
fn cycle(_1: i32, _2: i32, _3: i32) -> () {
2023-06-06 08:47:00 -05:00
debug x => _1;
debug y => _2;
debug z => _3;
let mut _0: ();
- let mut _4: ();
- let mut _5: bool;
- let _6: i32;
- let mut _7: i32;
- let mut _8: i32;
- let mut _9: i32;
- let mut _10: !;
- let _11: ();
- let mut _12: !;
+ let mut _4: bool;
+ let _5: i32;
2022-05-09 19:12:03 -05:00
scope 1 {
2023-06-06 08:47:00 -05:00
- debug temp => _6;
+ debug temp => _5;
2022-05-09 19:12:03 -05:00
}
bb0: {
2023-06-06 08:47:00 -05:00
goto -> bb1;
2022-05-09 19:12:03 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
- StorageLive(_5);
2023-06-23 11:53:09 -05:00
- _5 = cond() -> [return: bb2, unwind continue];
2023-06-06 08:47:00 -05:00
+ StorageLive(_4);
2023-06-23 11:53:09 -05:00
+ _4 = cond() -> [return: bb2, unwind continue];
2022-05-09 19:12:03 -05:00
}
bb2: {
2023-06-06 08:47:00 -05:00
- switchInt(move _5) -> [0: bb4, otherwise: bb3];
+ switchInt(move _4) -> [0: bb4, otherwise: bb3];
2022-05-09 19:12:03 -05:00
}
bb3: {
2023-06-06 08:47:00 -05:00
- StorageLive(_6);
- _6 = _3;
- StorageLive(_7);
- _7 = _2;
- _3 = move _7;
- StorageDead(_7);
- StorageLive(_8);
- _8 = _1;
- _2 = move _8;
- StorageDead(_8);
- StorageLive(_9);
- _9 = _6;
- _1 = move _9;
- StorageDead(_9);
- _4 = const ();
- StorageDead(_6);
+ StorageLive(_5);
StorageDead(_5);
+ StorageDead(_4);
goto -> bb1;
2022-05-09 19:12:03 -05:00
}
bb4: {
2023-06-06 08:47:00 -05:00
- StorageLive(_11);
_0 = const ();
- StorageDead(_11);
- StorageDead(_5);
+ StorageDead(_4);
return;
2022-05-09 19:12:03 -05:00
}
}