rust/tests/mir-opt/const_prop/address_of_pair.fn0.GVN.diff

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

55 lines
1.2 KiB
Diff
Raw Normal View History

2023-09-20 16:43:33 -05:00
- // MIR for `fn0` before GVN
+ // MIR for `fn0` after GVN
2023-04-28 11:51:40 -05:00
fn fn0() -> bool {
2023-06-06 08:47:00 -05:00
let mut _0: bool;
let mut _1: !;
let mut _2: (i32, bool);
let _4: ();
let mut _6: bool;
2023-04-28 11:51:40 -05:00
scope 1 {
2023-06-06 08:47:00 -05:00
debug pair => _2;
let _3: *mut bool;
2023-04-28 11:51:40 -05:00
scope 2 {
2023-06-06 08:47:00 -05:00
debug ptr => _3;
let _5: bool;
2023-04-28 11:51:40 -05:00
scope 3 {
}
scope 4 {
2023-06-06 08:47:00 -05:00
debug ret => _5;
2023-04-28 11:51:40 -05:00
}
}
}
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
2023-09-20 16:43:33 -05:00
- _2 = (const 1_i32, const false);
+ _2 = const (1_i32, false);
2023-12-24 07:00:48 -06:00
StorageLive(_3);
2023-06-06 08:47:00 -05:00
_3 = &raw mut (_2.1: bool);
2023-09-20 16:43:33 -05:00
- _2 = (const 1_i32, const false);
+ _2 = const (1_i32, false);
2023-06-06 08:47:00 -05:00
StorageLive(_4);
(*_3) = const true;
_4 = const ();
StorageDead(_4);
2023-09-20 16:43:33 -05:00
- StorageLive(_5);
+ nop;
2023-06-06 08:47:00 -05:00
StorageLive(_6);
_6 = (_2.1: bool);
_5 = Not(move _6);
StorageDead(_6);
_0 = _5;
2023-09-20 16:43:33 -05:00
- StorageDead(_5);
+ nop;
2023-12-24 07:00:48 -06:00
StorageDead(_3);
2023-06-06 08:47:00 -05:00
StorageDead(_2);
return;
2023-04-28 11:51:40 -05:00
}
2023-09-20 16:43:33 -05:00
+ }
+
+ ALLOC0 (size: 8, align: 4) {
+ 01 00 00 00 00 __ __ __ │ .....░░░
2023-04-28 11:51:40 -05:00
}