rust/tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.panic-unwind.diff

81 lines
1.5 KiB
Diff
Raw Normal View History

- // MIR for `f` before DestinationPropagation
+ // MIR for `f` after DestinationPropagation
fn f(_1: T) -> () {
2023-06-06 08:47:00 -05:00
debug a => _1;
let mut _0: ();
let _2: T;
let mut _3: bool;
let _4: ();
let mut _5: T;
let mut _6: T;
let _7: ();
let mut _8: T;
let mut _9: T;
scope 1 {
2023-06-06 08:47:00 -05:00
- debug b => _2;
+ debug b => _1;
}
bb0: {
2023-06-06 08:47:00 -05:00
- StorageLive(_2);
- _2 = _1;
+ nop;
+ nop;
StorageLive(_3);
_3 = const false;
- goto -> bb3;
+ goto -> bb1;
}
bb1: {
2023-06-06 08:47:00 -05:00
- StorageLive(_4);
- StorageLive(_5);
- _5 = _1;
- StorageLive(_6);
- _6 = _2;
- _4 = g::<T>(move _5, move _6) -> bb2;
- }
-
- bb2: {
2023-06-06 08:47:00 -05:00
- StorageDead(_6);
- StorageDead(_5);
- StorageDead(_4);
- _0 = const ();
- goto -> bb5;
- }
-
- bb3: {
2023-06-06 08:47:00 -05:00
StorageLive(_7);
- StorageLive(_8);
- _8 = _2;
+ nop;
+ nop;
StorageLive(_9);
- _9 = _2;
- _7 = g::<T>(move _8, move _9) -> bb4;
+ _9 = _1;
+ _7 = g::<T>(move _1, move _9) -> bb2;
}
- bb4: {
+ bb2: {
2023-06-06 08:47:00 -05:00
StorageDead(_9);
- StorageDead(_8);
+ nop;
StorageDead(_7);
_0 = const ();
- goto -> bb5;
+ goto -> bb3;
}
- bb5: {
+ bb3: {
2023-06-06 08:47:00 -05:00
StorageDead(_3);
- StorageDead(_2);
+ nop;
return;
}
}