rust/tests/mir-opt/sroa/structs.dropping.ScalarReplacementOfAggregates.diff

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

45 lines
1.0 KiB
Diff
Raw Normal View History

2023-03-05 12:06:55 -06:00
- // MIR for `dropping` before ScalarReplacementOfAggregates
+ // MIR for `dropping` after ScalarReplacementOfAggregates
fn dropping() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let _1: Tag;
let mut _2: S;
let mut _3: Tag;
let mut _4: Tag;
let mut _5: Tag;
2023-03-05 12:06:55 -06:00
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
_3 = Tag(const 0_usize);
StorageLive(_4);
_4 = Tag(const 1_usize);
StorageLive(_5);
_5 = Tag(const 2_usize);
_2 = S(move _3, move _4, move _5);
StorageDead(_5);
StorageDead(_4);
StorageDead(_3);
_1 = move (_2.1: Tag);
drop(_1) -> [return: bb1, unwind unreachable];
2023-03-05 12:06:55 -06:00
}
bb1: {
2023-06-06 08:47:00 -05:00
drop((_2.0: Tag)) -> [return: bb3, unwind unreachable];
2023-03-05 12:06:55 -06:00
}
bb2: {
2023-06-06 08:47:00 -05:00
StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
2023-03-05 12:06:55 -06:00
}
bb3: {
2023-06-06 08:47:00 -05:00
drop((_2.2: Tag)) -> [return: bb2, unwind unreachable];
2023-03-05 12:06:55 -06:00
}
}