[llvm] [LV] Use frozen start value for FindLastIV if needed. (PR #132691)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 26 07:37:25 PDT 2025
================
@@ -6,6 +6,7 @@ define i64 @select_icmp_nuw_nsw(ptr %a, ptr %b, i64 %ii, i64 %n) {
; CHECK-SAME: ptr [[A:%.*]], ptr [[B:%.*]], i64 [[II:%.*]], i64 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[MIN_ITERS_CHECK:%.*]] = icmp ult i64 [[N]], 4
+; CHECK-NEXT: [[FR:%.*]] = freeze i64 [[II]]
----------------
Mel-Chen wrote:
Could we insert the freeze in vector preheader, or the scalar loop also need the frozen start value?
https://github.com/llvm/llvm-project/pull/132691
More information about the llvm-commits
mailing list