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;
|
2023-08-26 11:58:42 -05:00
|
|
|
+ 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;
|
2024-03-10 08:05:11 -05:00
|
|
|
_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|