Skip to content

Commit 514e4a9

Browse files
committed
bless
1 parent ea443af commit 514e4a9

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

tests/mir-opt/const_array_locals.main.PromoteArraysOpt.diff

+28-12
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,23 @@
1111
let _8: ();
1212
let mut _9: [u16; 32];
1313
let mut _11: [f32; 8];
14-
+ let mut _15: &[i32; 32];
14+
let _12: [[i32; 3]; 3];
15+
let mut _13: [i32; 3];
16+
let mut _14: [i32; 3];
17+
let mut _15: [i32; 3];
18+
+ let mut _19: &[i32; 32];
1519
scope 1 {
1620
debug _arr => _1;
1721
let _2: [[i32; 12]; 2];
18-
+ let mut _14: &[[i32; 12]; 2];
22+
+ let mut _18: &[[i32; 12]; 2];
1923
scope 2 {
2024
debug _foo => _2;
2125
let _5: [i32; 32];
22-
let mut _12: &[i32; 32];
26+
let mut _16: &[i32; 32];
2327
scope 3 {
2428
debug _darr => _5;
2529
let _10: F32x8;
26-
+ let mut _13: &[u16; 32];
30+
+ let mut _17: &[u16; 32];
2731
scope 4 {
2832
debug _f => _10;
2933
}
@@ -34,8 +38,8 @@
3438
bb0: {
3539
- StorageLive(_1);
3640
- _1 = [const 255_i32, const 105_i32, const 15_i32, const 39_i32, const 62_i32, const 251_i32, const 191_i32, const 178_i32, const 9_i32, const 4_i32, const 56_i32, const 221_i32, const 193_i32, const 164_i32, const 194_i32, const 197_i32, const 6_i32, const 243_i32, const 218_i32, const 171_i32, const 87_i32, const 247_i32, const 104_i32, const 159_i32, const 22_i32, const 157_i32, const 105_i32, const 31_i32, const 96_i32, const 173_i32, const 50_i32, const 1_i32];
37-
+ _15 = const main::promoted[3];
38-
+ _1 = (*_15);
41+
+ _19 = const main::promoted[3];
42+
+ _1 = (*_19);
3943
FakeRead(ForLet(None), _1);
4044
- StorageLive(_2);
4145
- StorageLive(_3);
@@ -45,21 +49,21 @@
4549
- _2 = [move _3, move _4];
4650
- StorageDead(_4);
4751
- StorageDead(_3);
48-
+ _14 = const main::promoted[2];
49-
+ _2 = (*_14);
52+
+ _18 = const main::promoted[2];
53+
+ _2 = (*_18);
5054
FakeRead(ForLet(None), _2);
5155
StorageLive(_5);
5256
StorageLive(_6);
53-
_12 = const main::promoted[0];
54-
_6 = &(*_12);
57+
_16 = const main::promoted[0];
58+
_6 = &(*_16);
5559
_5 = (*_6);
5660
FakeRead(ForLet(None), _5);
5761
StorageDead(_6);
5862
StorageLive(_8);
5963
- StorageLive(_9);
6064
- _9 = [const 255_u16, const 105_u16, const 15_u16, const 39_u16, const 62_u16, const 251_u16, const 191_u16, const 178_u16, const 9_u16, const 4_u16, const 56_u16, const 221_u16, const 193_u16, const 164_u16, const 194_u16, const 197_u16, const 6_u16, const 243_u16, const 218_u16, const 171_u16, const 87_u16, const 247_u16, const 104_u16, const 159_u16, const 22_u16, const 157_u16, const 105_u16, const 31_u16, const 96_u16, const 173_u16, const 50_u16, const 1_u16];
61-
+ _13 = const main::promoted[1];
62-
+ _9 = (*_13);
65+
+ _17 = const main::promoted[1];
66+
+ _9 = (*_17);
6367
_8 = consume(move _9) -> [return: bb1, unwind: bb2];
6468
}
6569

@@ -72,6 +76,18 @@
7276
_10 = F32x8(move _11);
7377
StorageDead(_11);
7478
FakeRead(ForLet(None), _10);
79+
StorageLive(_12);
80+
StorageLive(_13);
81+
_13 = [const 1_i32, const 0_i32, const 0_i32];
82+
StorageLive(_14);
83+
_14 = [const 0_i32, const 1_i32, const 0_i32];
84+
StorageLive(_15);
85+
_15 = [const 0_i32, const 0_i32, const 1_i32];
86+
_12 = [move _13, move _14, move _15];
87+
StorageDead(_15);
88+
StorageDead(_14);
89+
StorageDead(_13);
90+
StorageDead(_12);
7591
_0 = const ();
7692
StorageDead(_10);
7793
StorageDead(_5);

0 commit comments

Comments
 (0)