2023-09-20 16:43:33 -05:00
|
|
|
- // MIR for `main` before GVN
|
|
|
|
+ // MIR for `main` after GVN
|
2020-04-04 12:15:01 -05:00
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: i32;
|
|
|
|
let mut _2: &i32;
|
|
|
|
let _3: i32;
|
|
|
|
let mut _4: &i32;
|
2023-12-02 14:58:35 -06:00
|
|
|
scope 1 {
|
|
|
|
debug a => _1;
|
|
|
|
}
|
2020-04-04 12:15:01 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
2023-12-24 07:00:48 -06:00
|
|
|
StorageLive(_2);
|
2024-03-10 08:05:11 -05:00
|
|
|
_4 = const main::promoted[0];
|
2023-06-06 08:47:00 -05:00
|
|
|
_2 = &(*_4);
|
2023-09-20 16:43:33 -05:00
|
|
|
- _1 = copy (*_2);
|
|
|
|
+ _1 = const 4_i32;
|
2023-12-24 07:00:48 -06:00
|
|
|
StorageDead(_2);
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const ();
|
2023-12-02 14:58:35 -06:00
|
|
|
StorageDead(_1);
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|