@@ -14,9 +14,9 @@ define void @blend_uniform_iv_trunc(i1 %c) {
14
14
; CHECK-NEXT: [[INDEX:%.*]] = phi i64 [ 0, %[[VECTOR_PH]] ], [ [[INDEX_NEXT:%.*]], %[[VECTOR_BODY]] ]
15
15
; CHECK-NEXT: [[TMP0:%.*]] = trunc i64 [[INDEX]] to i16
16
16
; CHECK-NEXT: [[TMP1:%.*]] = add i16 [[TMP0]], 0
17
- ; CHECK-NEXT: [[PREDPHI :%.*]] = select i1 [[C]], i16 [[TMP1]], i16 undef
18
- ; CHECK-NEXT: [[TMP2 :%.*]] = getelementptr inbounds [32 x i16], ptr @dst, i16 0, i16 [[PREDPHI ]]
19
- ; CHECK-NEXT: [[TMP3:%.*]] = getelementptr inbounds i16, ptr [[TMP2 ]], i32 0
17
+ ; CHECK-NEXT: [[TMP6 :%.*]] = select i1 [[C]], i16 [[TMP1]], i16 poison
18
+ ; CHECK-NEXT: [[TMP7 :%.*]] = getelementptr inbounds [32 x i16], ptr @dst, i16 0, i16 [[TMP6 ]]
19
+ ; CHECK-NEXT: [[TMP3:%.*]] = getelementptr inbounds i16, ptr [[TMP7 ]], i32 0
20
20
; CHECK-NEXT: store <4 x i16> zeroinitializer, ptr [[TMP3]], align 2
21
21
; CHECK-NEXT: [[INDEX_NEXT]] = add nuw i64 [[INDEX]], 4
22
22
; CHECK-NEXT: [[TMP4:%.*]] = icmp eq i64 [[INDEX_NEXT]], 32
@@ -33,7 +33,7 @@ define void @blend_uniform_iv_trunc(i1 %c) {
33
33
; CHECK: [[LOOP_NEXT]]:
34
34
; CHECK-NEXT: br label %[[LOOP_LATCH]]
35
35
; CHECK: [[LOOP_LATCH]]:
36
- ; CHECK-NEXT: [[BLEND:%.*]] = phi i16 [ undef , %[[LOOP_HEADER]] ], [ [[IV_TRUNC_2]], %[[LOOP_NEXT]] ]
36
+ ; CHECK-NEXT: [[BLEND:%.*]] = phi i16 [ poison , %[[LOOP_HEADER]] ], [ [[IV_TRUNC_2]], %[[LOOP_NEXT]] ]
37
37
; CHECK-NEXT: [[DST_PTR:%.*]] = getelementptr inbounds [32 x i16], ptr @dst, i16 0, i16 [[BLEND]]
38
38
; CHECK-NEXT: store i16 0, ptr [[DST_PTR]], align 2
39
39
; CHECK-NEXT: [[IV_NEXT]] = add nuw nsw i64 [[IV]], 1
@@ -54,7 +54,7 @@ loop.next: ; preds = %loop.header
54
54
br label %loop.latch
55
55
56
56
loop.latch: ; preds = %loop.next, %loop.header
57
- %blend = phi i16 [ undef , %loop.header ], [ %iv.trunc.2 , %loop.next ]
57
+ %blend = phi i16 [ poison , %loop.header ], [ %iv.trunc.2 , %loop.next ]
58
58
%dst.ptr = getelementptr inbounds [32 x i16 ], ptr @dst , i16 0 , i16 %blend
59
59
store i16 0 , ptr %dst.ptr
60
60
%iv.next = add nuw nsw i64 %iv , 1
@@ -75,9 +75,9 @@ define void @blend_uniform_iv(i1 %c) {
75
75
; CHECK: [[VECTOR_BODY]]:
76
76
; CHECK-NEXT: [[INDEX:%.*]] = phi i64 [ 0, %[[VECTOR_PH]] ], [ [[INDEX_NEXT:%.*]], %[[VECTOR_BODY]] ]
77
77
; CHECK-NEXT: [[TMP0:%.*]] = add i64 [[INDEX]], 0
78
- ; CHECK-NEXT: [[PREDPHI :%.*]] = select i1 [[C]], i64 [[TMP0]], i64 undef
79
- ; CHECK-NEXT: [[TMP1 :%.*]] = getelementptr inbounds [32 x i16], ptr @dst, i16 0, i64 [[PREDPHI ]]
80
- ; CHECK-NEXT: [[TMP2:%.*]] = getelementptr inbounds i16, ptr [[TMP1 ]], i32 0
78
+ ; CHECK-NEXT: [[TMP6 :%.*]] = select i1 [[C]], i64 [[TMP0]], i64 poison
79
+ ; CHECK-NEXT: [[TMP7 :%.*]] = getelementptr inbounds [32 x i16], ptr @dst, i16 0, i64 [[TMP6 ]]
80
+ ; CHECK-NEXT: [[TMP2:%.*]] = getelementptr inbounds i16, ptr [[TMP7 ]], i32 0
81
81
; CHECK-NEXT: store <4 x i16> zeroinitializer, ptr [[TMP2]], align 2
82
82
; CHECK-NEXT: [[INDEX_NEXT]] = add nuw i64 [[INDEX]], 4
83
83
; CHECK-NEXT: [[TMP3:%.*]] = icmp eq i64 [[INDEX_NEXT]], 32
@@ -93,7 +93,7 @@ define void @blend_uniform_iv(i1 %c) {
93
93
; CHECK: [[LOOP_NEXT]]:
94
94
; CHECK-NEXT: br label %[[LOOP_LATCH]]
95
95
; CHECK: [[LOOP_LATCH]]:
96
- ; CHECK-NEXT: [[BLEND:%.*]] = phi i64 [ undef , %[[LOOP_HEADER]] ], [ [[IV]], %[[LOOP_NEXT]] ]
96
+ ; CHECK-NEXT: [[BLEND:%.*]] = phi i64 [ poison , %[[LOOP_HEADER]] ], [ [[IV]], %[[LOOP_NEXT]] ]
97
97
; CHECK-NEXT: [[DST_PTR:%.*]] = getelementptr inbounds [32 x i16], ptr @dst, i16 0, i64 [[BLEND]]
98
98
; CHECK-NEXT: store i16 0, ptr [[DST_PTR]], align 2
99
99
; CHECK-NEXT: [[IV_NEXT]] = add nuw nsw i64 [[IV]], 1
@@ -114,7 +114,7 @@ loop.next: ; preds = %loop.header
114
114
br label %loop.latch
115
115
116
116
loop.latch: ; preds = %loop.next, %loop.header
117
- %blend = phi i64 [ undef , %loop.header ], [ %iv , %loop.next ]
117
+ %blend = phi i64 [ poison , %loop.header ], [ %iv , %loop.next ]
118
118
%dst.ptr = getelementptr inbounds [32 x i16 ], ptr @dst , i16 0 , i64 %blend
119
119
store i16 0 , ptr %dst.ptr
120
120
%iv.next = add nuw nsw i64 %iv , 1
0 commit comments