@@ -135,8 +135,8 @@ for.end:
135
135
;
136
136
; CHECK: Scalarizing: %tmp3 = add nsw i32 %tmp2, %x
137
137
; CHECK: Scalarizing and predicating: %tmp4 = udiv i32 %tmp2, %tmp3
138
- ; CHECK: Cost of 3 for VF 2: profitable to scalarize %tmp3 = add nsw i32 %tmp2, %x
139
138
; CHECK: Cost of 5 for VF 2: profitable to scalarize %tmp4 = udiv i32 %tmp2, %tmp3
139
+ ; CHECK: Cost of 3 for VF 2: profitable to scalarize %tmp3 = add nsw i32 %tmp2, %x
140
140
;
141
141
142
142
define i32 @predicated_udiv_scalarized_operand (ptr %a , i1 %c , i32 %x , i64 %n ) {
@@ -181,8 +181,8 @@ for.end:
181
181
;
182
182
; CHECK: Scalarizing: %tmp2 = add nsw i32 %tmp1, %x
183
183
; CHECK: Scalarizing and predicating: store i32 %tmp2, ptr %tmp0, align 4
184
- ; CHECK: Cost of 3 for VF 2: profitable to scalarize %tmp2 = add nsw i32 %tmp1, %x
185
184
; CHECK: Cost of 2 for VF 2: profitable to scalarize store i32 %tmp2, ptr %tmp0, align 4
185
+ ; CHECK: Cost of 3 for VF 2: profitable to scalarize %tmp2 = add nsw i32 %tmp1, %x
186
186
;
187
187
define void @predicated_store_scalarized_operand (ptr %a , i1 %c , i32 %x , i64 %n ) {
188
188
entry:
@@ -233,8 +233,8 @@ for.end:
233
233
; CHECK: Scalarizing and predicating: %tmp4 = udiv i32 %tmp3, %tmp2
234
234
; CHECK: Scalarizing: %tmp5 = sub i32 %tmp4, %x
235
235
; CHECK: Scalarizing and predicating: store i32 %tmp5, ptr %tmp0, align 4
236
- ; CHECK: Cost of 7 for VF 2: profitable to scalarize %tmp4 = udiv i32 %tmp3, %tmp2
237
236
; CHECK: Cost of 7 for VF 2: profitable to scalarize %tmp3 = sdiv i32 %tmp1, %tmp2
237
+ ; CHECK: Cost of 7 for VF 2: profitable to scalarize %tmp4 = udiv i32 %tmp3, %tmp2
238
238
; CHECK: Cost of 2 for VF 2: profitable to scalarize store i32 %tmp5, ptr %tmp0, align 4
239
239
; CHECK: Cost of 3 for VF 2: profitable to scalarize %tmp5 = sub i32 %tmp4, %x
240
240
; CHECK: Cost of 1 for VF 2: WIDEN ir<%tmp2> = add ir<%tmp1>, ir<%x>
0 commit comments