os-rust/tests/mir-opt/const_prop/ref_deref_project.main.GVN.diff

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

28 lines
564 B
Diff
Raw Normal View History

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);
_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
}
}