[llvm] LV/test: regen a couple of tests with UTC (NFC) (PR #107225)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 05:58:01 PDT 2024
================
@@ -46,15 +90,72 @@ for.end:
; CHECK-LABEL: phi_three_incoming_values
; CHECK: LV: Found an estimated cost of 1 for VF 2 For instruction: %i = phi i64 [ %i.next, %if.end ], [ 0, %entry ]
; CHECK: LV: Found an estimated cost of 2 for VF 2 For instruction: %tmp8 = phi i32 [ 9, %for.body ], [ 3, %if.then ], [ %tmp7, %if.else ]
-; CHECK: define void @phi_three_incoming_values(
-; CHECK: vector.body:
-; CHECK-NEXT: [[INDEX:%.*]] = phi i64 [ 0, %vector.ph ], [ [[INDEX_NEXT:%.*]], %vector.body ]
-; CHECK: [[PREDPHI:%.*]] = select <2 x i1> {{.*}}, <2 x i32> {{.*}}, <2 x i32> <i32 3, i32 3>
-; CHECK: [[PREDPHI7:%.*]] = select <2 x i1> {{.*}}, <2 x i32> [[PREDPHI]], <2 x i32> <i32 9, i32 9>
-; CHECK: store <2 x i32> [[PREDPHI7]], ptr {{.*}}
-; CHECK-NEXT: [[INDEX_NEXT]] = add nuw i64 [[INDEX]], 2
;
define void @phi_three_incoming_values(ptr %a, ptr %b, i64 %n) {
----------------
fhahn wrote:
when auto-generating the test might be good to add `no alias` to the pointer args, to keep the IR more compact by avoiding mem checks as they are not interesting for the test?
https://github.com/llvm/llvm-project/pull/107225
More information about the llvm-commits
mailing list