rust/tests/mir-opt/const_prop/issue_67019.main.GVN.panic-abort.diff

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

39 lines
930 B
Diff
Raw Normal View History

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: ();
let mut _2: ((u8, u8),);
let mut _3: (u8, u8);
2020-04-04 12:15:01 -05:00
bb0: {
2023-12-02 14:38:07 -06:00
StorageLive(_1);
2023-06-06 08:47:00 -05:00
StorageLive(_2);
StorageLive(_3);
- _3 = (const 1_u8, const 2_u8);
2023-02-08 12:54:34 -06:00
- _2 = (move _3,);
2023-06-06 08:47:00 -05:00
+ _3 = const (1_u8, 2_u8);
2023-02-08 15:05:56 -06:00
+ _2 = const ((1_u8, 2_u8),);
2023-06-06 08:47:00 -05:00
StorageDead(_3);
2023-02-08 15:05:56 -06:00
- _1 = test(move _2) -> [return: bb1, unwind unreachable];
+ _1 = test(const ((1_u8, 2_u8),)) -> [return: bb1, unwind unreachable];
2020-04-04 12:15:01 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageDead(_2);
2023-12-02 14:38:07 -06:00
StorageDead(_1);
_0 = const ();
2023-06-06 08:47:00 -05:00
return;
2020-04-04 12:15:01 -05:00
}
2023-09-12 04:33:58 -05:00
+ }
+
2023-10-15 12:00:11 -05:00
+ ALLOC0 (size: 2, align: 1) {
2023-09-12 04:33:58 -05:00
+ 01 02 │ ..
+ }
+
2023-10-15 12:00:11 -05:00
+ ALLOC1 (size: 2, align: 1) {
2023-09-12 04:33:58 -05:00
+ 01 02 │ ..
2020-04-04 12:15:01 -05:00
}