@@ -135,8 +135,8 @@ for.end:
135135;
136136; CHECK: Scalarizing: %tmp3 = add nsw i32 %tmp2, %x
137137; 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
139138; 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
140140;
141141
142142define i32 @predicated_udiv_scalarized_operand (ptr %a , i1 %c , i32 %x , i64 %n ) {
@@ -181,8 +181,8 @@ for.end:
181181;
182182; CHECK: Scalarizing: %tmp2 = add nsw i32 %tmp1, %x
183183; 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
185184; 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
186186;
187187define void @predicated_store_scalarized_operand (ptr %a , i1 %c , i32 %x , i64 %n ) {
188188entry:
@@ -233,8 +233,8 @@ for.end:
233233; CHECK: Scalarizing and predicating: %tmp4 = udiv i32 %tmp3, %tmp2
234234; CHECK: Scalarizing: %tmp5 = sub i32 %tmp4, %x
235235; 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
237236; 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
238238; CHECK: Cost of 2 for VF 2: profitable to scalarize store i32 %tmp5, ptr %tmp0, align 4
239239; CHECK: Cost of 3 for VF 2: profitable to scalarize %tmp5 = sub i32 %tmp4, %x
240240; CHECK: Cost of 1 for VF 2: WIDEN ir<%tmp2> = add ir<%tmp1>, ir<%x>
0 commit comments