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

39 lines
932 B
Diff
Raw Normal View History

2023-03-05 12:06:55 -06:00
- // MIR for `escaping` before ScalarReplacementOfAggregates
+ // MIR for `escaping` after ScalarReplacementOfAggregates
fn escaping() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let _1: ();
let mut _2: *const u32;
let _3: &u32;
let _4: Escaping;
let mut _5: u32;
2023-03-05 12:06:55 -06:00
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
StorageLive(_4);
StorageLive(_5);
_5 = g() -> [return: bb1, unwind unreachable];
2023-03-05 12:06:55 -06:00
}
bb1: {
2023-06-06 08:47:00 -05:00
_4 = Escaping { a: const 1_u32, b: const 2_u32, c: move _5 };
StorageDead(_5);
_3 = &(_4.0: u32);
_2 = &raw const (*_3);
_1 = f(move _2) -> [return: bb2, unwind unreachable];
2023-03-05 12:06:55 -06:00
}
bb2: {
2023-06-06 08:47:00 -05:00
StorageDead(_2);
StorageDead(_4);
StorageDead(_3);
StorageDead(_1);
_0 = const ();
return;
2023-03-05 12:06:55 -06:00
}
}