Skip to content

Commit 6d13ad1

Browse files
committed
bless
1 parent 1d8dcc7 commit 6d13ad1

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

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

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,32 @@
1010
let _7: [i32; 32];
1111
let _8: ();
1212
let mut _9: [u16; 32];
13-
+ let mut _13: &[i32; 32];
13+
let mut _11: [f32; 8];
14+
+ let mut _15: &[i32; 32];
1415
scope 1 {
1516
debug _arr => _1;
1617
let _2: [[i32; 12]; 2];
17-
+ let mut _12: &[[i32; 12]; 2];
18+
+ let mut _14: &[[i32; 12]; 2];
1819
scope 2 {
1920
debug _foo => _2;
2021
let _5: [i32; 32];
21-
let mut _10: &[i32; 32];
22+
let mut _12: &[i32; 32];
2223
scope 3 {
2324
debug _darr => _5;
24-
+ let mut _11: &[u16; 32];
25+
let _10: F32x8;
26+
+ let mut _13: &[u16; 32];
27+
scope 4 {
28+
debug _f => _10;
29+
}
2530
}
2631
}
2732
}
2833

2934
bb0: {
3035
- StorageLive(_1);
3136
- _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];
32-
+ _13 = const main::promoted[3];
33-
+ _1 = (*_13);
37+
+ _15 = const main::promoted[3];
38+
+ _1 = (*_15);
3439
FakeRead(ForLet(None), _1);
3540
- StorageLive(_2);
3641
- StorageLive(_3);
@@ -40,28 +45,35 @@
4045
- _2 = [move _3, move _4];
4146
- StorageDead(_4);
4247
- StorageDead(_3);
43-
+ _12 = const main::promoted[2];
44-
+ _2 = (*_12);
48+
+ _14 = const main::promoted[2];
49+
+ _2 = (*_14);
4550
FakeRead(ForLet(None), _2);
4651
StorageLive(_5);
4752
StorageLive(_6);
48-
_10 = const main::promoted[0];
49-
_6 = &(*_10);
53+
_12 = const main::promoted[0];
54+
_6 = &(*_12);
5055
_5 = (*_6);
5156
FakeRead(ForLet(None), _5);
5257
StorageDead(_6);
5358
StorageLive(_8);
5459
- StorageLive(_9);
5560
- _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];
56-
+ _11 = const main::promoted[1];
57-
+ _9 = (*_11);
61+
+ _13 = const main::promoted[1];
62+
+ _9 = (*_13);
5863
_8 = consume(move _9) -> [return: bb1, unwind: bb2];
5964
}
6065

6166
bb1: {
6267
- StorageDead(_9);
6368
StorageDead(_8);
69+
StorageLive(_10);
70+
StorageLive(_11);
71+
_11 = [const 1f32, const 1f32, const 1f32, const 1f32, const 1f32, const 1f32, const 1f32, const 1f32];
72+
_10 = F32x8(move _11);
73+
StorageDead(_11);
74+
FakeRead(ForLet(None), _10);
6475
_0 = const ();
76+
StorageDead(_10);
6577
StorageDead(_5);
6678
- StorageDead(_2);
6779
- StorageDead(_1);

0 commit comments

Comments
 (0)