2024-01-26 09:30:46 +00:00
|
|
|
- // MIR for `f` before GVN
|
|
|
|
+ // MIR for `f` after GVN
|
|
|
|
|
|
|
|
fn f() -> u32 {
|
|
|
|
let mut _0: u32;
|
|
|
|
let _1: u32;
|
|
|
|
let mut _2: E;
|
|
|
|
let mut _3: &U;
|
|
|
|
let _4: U;
|
2024-02-27 11:57:52 +00:00
|
|
|
let mut _5: &U;
|
2024-01-26 09:30:46 +00:00
|
|
|
scope 1 {
|
|
|
|
debug i => _1;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
2024-03-10 13:05:11 +00:00
|
|
|
_5 = const f::promoted[0];
|
2024-01-26 09:30:46 +00:00
|
|
|
_3 = &(*_5);
|
2024-01-05 21:52:58 +00:00
|
|
|
- _2 = copy ((*_3).1: E);
|
|
|
|
+ _2 = copy ((*_5).1: E);
|
2024-01-26 09:30:46 +00:00
|
|
|
StorageLive(_1);
|
|
|
|
- _1 = copy ((_2 as A).1: u32);
|
|
|
|
+ _1 = const 0_u32;
|
|
|
|
StorageDead(_3);
|
|
|
|
StorageDead(_2);
|
|
|
|
- _0 = copy _1;
|
|
|
|
+ _0 = const 0_u32;
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|