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