[llvm] [LV] Rework collectUnitStridePredicates (PR #216362)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 17 03:05:46 PDT 2026
================
@@ -3464,11 +3464,11 @@ define void @wrappingindvars1(i8 %t, i32 %len, ptr %A) {
; UNROLL: vector.scevcheck:
; UNROLL-NEXT: [[TMP1:%.*]] = trunc i32 [[LEN]] to i8
; UNROLL-NEXT: [[TMP2:%.*]] = add i8 [[T]], [[TMP1]]
-; UNROLL-NEXT: [[TMP3:%.*]] = icmp slt i8 [[TMP2]], [[T]]
+; UNROLL-NEXT: [[TMP3:%.*]] = icmp ult i8 [[TMP2]], [[T]]
; UNROLL-NEXT: [[TMP4:%.*]] = icmp ugt i32 [[LEN]], 255
; UNROLL-NEXT: [[TMP5:%.*]] = or i1 [[TMP3]], [[TMP4]]
; UNROLL-NEXT: [[TMP6:%.*]] = add i8 [[T]], [[TMP1]]
-; UNROLL-NEXT: [[TMP7:%.*]] = icmp ult i8 [[TMP6]], [[T]]
+; UNROLL-NEXT: [[TMP7:%.*]] = icmp slt i8 [[TMP6]], [[T]]
----------------
artagnon wrote:
Perhaps easier to understand the changes in this file as simply a re-ordering of stride-predicates, that are then expanded?
https://github.com/llvm/llvm-project/pull/216362
More information about the llvm-commits
mailing list