[llvm] [LV] Use SCEV to check if minimum iteration check is known. (PR #111310)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 04:58:08 PDT 2024
================
@@ -423,8 +423,7 @@ define void @zext_of_i1_stride(i1 %g, ptr %dst) mustprogress {
; CHECK-NEXT: [[G_64:%.*]] = zext i1 [[G]] to i64
; CHECK-NEXT: [[TMP0:%.*]] = udiv i64 15, [[G_64]]
; CHECK-NEXT: [[TMP1:%.*]] = add nuw nsw i64 [[TMP0]], 1
-; CHECK-NEXT: [[MIN_ITERS_CHECK:%.*]] = icmp ult i64 [[TMP1]], 4
-; CHECK-NEXT: br i1 [[MIN_ITERS_CHECK]], label [[SCALAR_PH:%.*]], label [[VECTOR_SCEVCHECK:%.*]]
+; CHECK-NEXT: br i1 false, label [[SCALAR_PH:%.*]], label [[VECTOR_SCEVCHECK:%.*]]
----------------
fhahn wrote:
Yes, the step of 4 is used here, based on the versioned G
https://github.com/llvm/llvm-project/pull/111310
More information about the llvm-commits
mailing list