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

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

48 lines
1.1 KiB
Diff
Raw Normal View History

2023-03-05 12:06:55 -06:00
- // MIR for `constant` before ScalarReplacementOfAggregates
+ // MIR for `constant` after ScalarReplacementOfAggregates
fn constant() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let _1: (usize, u8);
+ let _4: usize;
+ let _5: u8;
2023-03-05 12:06:55 -06:00
scope 1 {
2023-06-06 08:47:00 -05:00
- debug y => _1;
+ debug ((y: (usize, u8)).0: usize) => _4;
+ debug ((y: (usize, u8)).1: u8) => _5;
2023-06-06 08:47:00 -05:00
let _2: usize;
2023-03-05 12:06:55 -06:00
scope 2 {
2023-06-06 08:47:00 -05:00
debug t => _2;
let _3: u8;
2023-03-05 12:06:55 -06:00
scope 3 {
2023-06-06 08:47:00 -05:00
debug u => _3;
2023-03-05 12:06:55 -06:00
}
}
}
bb0: {
2023-06-06 08:47:00 -05:00
- StorageLive(_1);
+ StorageLive(_4);
+ StorageLive(_5);
+ nop;
_1 = const constant::U;
2023-06-06 08:47:00 -05:00
+ _4 = move (_1.0: usize);
+ _5 = move (_1.1: u8);
StorageLive(_2);
- _2 = (_1.0: usize);
+ _2 = _4;
StorageLive(_3);
- _3 = (_1.1: u8);
+ _3 = _5;
_0 = const ();
StorageDead(_3);
StorageDead(_2);
- StorageDead(_1);
+ StorageDead(_4);
+ StorageDead(_5);
+ nop;
return;
2023-03-05 12:06:55 -06:00
}
}