2022-05-23 02:27:44 -05:00
|
|
|
- // MIR for `structs` before ScalarReplacementOfAggregates
|
|
|
|
+ // MIR for `structs` after ScalarReplacementOfAggregates
|
|
|
|
|
|
|
|
fn structs(_1: f32) -> f32 {
|
|
|
|
debug a => _1; // in scope 0 at $DIR/sroa.rs:+0:16: +0:17
|
|
|
|
let mut _0: f32; // return place in scope 0 at $DIR/sroa.rs:+0:27: +0:30
|
|
|
|
let mut _2: structs::U; // in scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
|
|
let mut _3: f32; // in scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
2023-02-04 08:39:42 -06:00
|
|
|
+ let mut _4: f32; // in scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
2022-05-23 02:27:44 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-02-04 08:39:42 -06:00
|
|
|
- StorageLive(_2); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
|
|
+ StorageLive(_4); // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
|
|
+ nop; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
2022-05-23 02:27:44 -05:00
|
|
|
StorageLive(_3); // scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
|
|
|
_3 = _1; // scope 0 at $DIR/sroa.rs:+6:18: +6:19
|
2023-02-04 08:39:42 -06:00
|
|
|
- _2 = U { _foo: const 0_usize, a: move _3 }; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
|
|
+ _4 = move _3; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
|
|
|
+ nop; // scope 0 at $DIR/sroa.rs:+6:5: +6:21
|
2022-05-23 02:27:44 -05:00
|
|
|
StorageDead(_3); // scope 0 at $DIR/sroa.rs:+6:20: +6:21
|
2023-02-04 08:39:42 -06:00
|
|
|
- _0 = (_2.1: f32); // scope 0 at $DIR/sroa.rs:+6:5: +6:23
|
|
|
|
- StorageDead(_2); // scope 0 at $DIR/sroa.rs:+7:1: +7:2
|
|
|
|
+ _0 = _4; // scope 0 at $DIR/sroa.rs:+6:5: +6:23
|
|
|
|
+ StorageDead(_4); // scope 0 at $DIR/sroa.rs:+7:1: +7:2
|
|
|
|
+ nop; // scope 0 at $DIR/sroa.rs:+7:1: +7:2
|
2022-05-23 02:27:44 -05:00
|
|
|
return; // scope 0 at $DIR/sroa.rs:+7:2: +7:2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|