Skip to content

Commit f85de24

Browse files
committed
[LV] Add variable trip count for test.
1 parent c6b340e commit f85de24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Transforms/LoopVectorize/AArch64/strict-fadd.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ for.end:
934934
}
935935

936936
; Test case where the reduction step is a first-order recurrence.
937-
define double @reduction_increment_by_first_order_recurrence() {
937+
define double @reduction_increment_by_first_order_recurrence(i32 %n) {
938938
; CHECK-ORDERED-LABEL: @reduction_increment_by_first_order_recurrence(
939939
; CHECK-ORDERED: vector.body:
940940
; CHECK-ORDERED: [[RED:%.*]] = phi double [ 0.000000e+00, %vector.ph ], [ [[RED_NEXT:%.*]], %vector.body ]
@@ -970,7 +970,7 @@ loop:
970970
%red.next = fadd double %for, %red
971971
%for.next = sitofp i32 %iv to double
972972
%iv.next = add nsw i32 %iv, 1
973-
%ec = icmp eq i32 %iv.next, 1025
973+
%ec = icmp eq i32 %iv.next, %n
974974
br i1 %ec, label %exit, label %loop, !llvm.loop !13
975975

976976
exit:

0 commit comments

Comments
 (0)