rust/tests/mir-opt/gvn.indirect_static.GVN.pan...

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

18 lines
398 B
Diff
Raw Normal View History

2023-10-22 22:49:00 +08:00
- // MIR for `indirect_static` before GVN
+ // MIR for `indirect_static` after GVN
fn indirect_static() -> () {
let mut _0: ();
let mut _1: &std::option::Option<u8>;
let mut _2: u8;
bb0: {
_1 = const {ALLOC0: &Option<u8>};
_2 = copy (((*_1) as variant#1).0: u8);
return;
}
}
2024-06-15 07:05:22 +08:00
ALLOC0 (static: A, size: 2, align: 1) { .. }
2023-10-22 22:49:00 +08:00