2022-05-23 02:27:44 -05:00
|
|
|
- // MIR for `dropping` before ScalarReplacementOfAggregates
|
|
|
|
+ // MIR for `dropping` after ScalarReplacementOfAggregates
|
|
|
|
|
|
|
|
fn dropping() -> () {
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/sroa.rs:+0:19: +0:19
|
|
|
|
let _1: Tag; // in scope 0 at $DIR/sroa.rs:+1:5: +1:32
|
|
|
|
let mut _2: S; // in scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
|
|
|
let mut _3: Tag; // in scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
|
|
|
let mut _4: Tag; // in scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
|
|
|
let mut _5: Tag; // in scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
StorageLive(_1); // scope 0 at $DIR/sroa.rs:+1:5: +1:32
|
|
|
|
StorageLive(_2); // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
|
|
|
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
2023-01-25 12:34:35 -06:00
|
|
|
_3 = Tag(const 0_usize); // scope 0 at $DIR/sroa.rs:+1:7: +1:13
|
2022-05-23 02:27:44 -05:00
|
|
|
StorageLive(_4); // scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
2023-01-25 12:34:35 -06:00
|
|
|
_4 = Tag(const 1_usize); // scope 0 at $DIR/sroa.rs:+1:15: +1:21
|
2022-05-23 02:27:44 -05:00
|
|
|
StorageLive(_5); // scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
2023-01-25 12:34:35 -06:00
|
|
|
_5 = Tag(const 2_usize); // scope 0 at $DIR/sroa.rs:+1:23: +1:29
|
|
|
|
_2 = S(move _3, move _4, move _5); // scope 0 at $DIR/sroa.rs:+1:5: +1:30
|
2022-05-23 02:27:44 -05:00
|
|
|
StorageDead(_5); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
|
|
|
StorageDead(_4); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
|
|
|
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+1:29: +1:30
|
|
|
|
_1 = move (_2.1: Tag); // scope 0 at $DIR/sroa.rs:+1:5: +1:32
|
2022-11-15 12:06:45 -06:00
|
|
|
drop(_1) -> bb1; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
|
2022-05-23 02:27:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-11-15 12:06:45 -06:00
|
|
|
drop((_2.0: Tag)) -> bb3; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
|
2022-05-23 02:27:44 -05:00
|
|
|
}
|
|
|
|
|
2022-11-15 12:06:45 -06:00
|
|
|
bb2: {
|
2022-05-23 02:27:44 -05:00
|
|
|
StorageDead(_2); // scope 0 at $DIR/sroa.rs:+1:32: +1:33
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/sroa.rs:+1:32: +1:33
|
|
|
|
_0 = const (); // scope 0 at $DIR/sroa.rs:+0:19: +2:2
|
|
|
|
return; // scope 0 at $DIR/sroa.rs:+2:2: +2:2
|
|
|
|
}
|
|
|
|
|
2022-11-15 12:06:45 -06:00
|
|
|
bb3: {
|
|
|
|
drop((_2.2: Tag)) -> bb2; // scope 0 at $DIR/sroa.rs:+1:32: +1:33
|
2022-05-23 02:27:44 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|