Skip to content

Commit ec7d227

Browse files
committed
bless else
1 parent 9c24e14 commit ec7d227

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

tests/mir-opt/const_prop/array_index.main.GVN.64bit.panic-unwind.diff

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
bb0: {
1616
StorageLive(_1);
1717
StorageLive(_2);
18-
_2 = [const 0_u32, const 1_u32, const 2_u32, const 3_u32];
18+
- _2 = [const 0_u32, const 1_u32, const 2_u32, const 3_u32];
19+
+ _2 = const [0_u32, 1_u32, 2_u32, 3_u32];
1920
StorageLive(_3);
2021
_3 = const 2_usize;
2122
- _4 = Len(_2);
@@ -35,5 +36,9 @@
3536
StorageDead(_1);
3637
return;
3738
}
39+
+ }
40+
+
41+
+ ALLOC0 (size: 16, align: 4) {
42+
+ 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 │ ................
3843
}
3944

tests/mir-opt/const_prop/read_immutable_static.main.GVN.diff

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414

1515
bb0: {
1616
StorageLive(_1);
17-
- StorageLive(_2);
17+
StorageLive(_2);
1818
- StorageLive(_3);
19-
+ nop;
2019
+ nop;
2120
_3 = const {ALLOC0: &u8};
2221
- _2 = (*_3);
@@ -29,8 +28,7 @@
2928
+ _4 = const 2_u8;
3029
+ _1 = const 4_u8;
3130
StorageDead(_4);
32-
- StorageDead(_2);
33-
+ nop;
31+
StorageDead(_2);
3432
StorageDead(_5);
3533
- StorageDead(_3);
3634
+ nop;

tests/mir-opt/pre-codegen/optimizes_into_variable.main.GVN.64bit.panic-unwind.diff

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
+ _1 = const 4_i32;
3636
StorageLive(_3);
3737
StorageLive(_4);
38-
_4 = [const 0_i32, const 1_i32, const 2_i32, const 3_i32, const 4_i32, const 5_i32];
38+
- _4 = [const 0_i32, const 1_i32, const 2_i32, const 3_i32, const 4_i32, const 5_i32];
39+
+ _4 = const [0_i32, 1_i32, 2_i32, 3_i32, 4_i32, 5_i32];
3940
StorageLive(_5);
4041
_5 = const 3_usize;
4142
_6 = const 6_usize;
@@ -65,5 +66,10 @@
6566
+
6667
+ ALLOC0 (size: 8, align: 4) {
6768
+ 04 00 00 00 00 __ __ __ │ .....░░░
69+
+ }
70+
+
71+
+ ALLOC1 (size: 24, align: 4) {
72+
+ 0x00 │ 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 │ ................
73+
+ 0x10 │ 04 00 00 00 05 00 00 00 │ ........
6874
}
6975

0 commit comments

Comments
 (0)