[llvm] [LV] Avoid adding stray predicates in isConsecutivePtr (PR #213662)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 8 05:57:30 PDT 2026


================
@@ -5,60 +5,100 @@
 ; convertToStridedAccesses uses the canonical IV type (i32) for the stride
 ; constant, but the pointer stride exceeds INT32_MAX on rv64 with a narrow IV.
 
-define void @stride_exceeds_i32_max(ptr noalias readonly %src, ptr noalias %dst, i16 %start) {
-; CHECK-LABEL: define void @stride_exceeds_i32_max(
+define void @stride_sext_exceeds_i32_max(ptr noalias readonly %src, ptr noalias %dst, i16 %start) {
----------------
fhahn wrote:

would be good to add a TODO , perhaps someting like 
```suggestion
; TODO: Should form a strided load with SCEV predicates.
define void @stride_sext_exceeds_i32_max(ptr noalias readonly %src, ptr noalias %dst, i16 %start) {
```

https://github.com/llvm/llvm-project/pull/213662


More information about the llvm-commits mailing list