[llvm] [LAA] Avoid unprofitable unit-stride versioning (PR #225331)
Boyao Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 05:37:53 PDT 2026
================
@@ -3165,7 +3165,8 @@ static Value *getLoopVariantGEPOperand(Value *Ptr, ScalarEvolution *SE,
/// Get the stride of a pointer access in a loop. Looks for symbolic
/// strides "a[i*stride]". Returns the symbolic stride, or null otherwise.
-static const SCEV *getStrideFromPointer(Value *Ptr, ScalarEvolution *SE, Loop *Lp) {
+static const SCEVUnknown *getStrideFromPointer(Value *Ptr, ScalarEvolution *SE,
----------------
BoyaoWang430 wrote:
Given different reviewers' preference, I'll leave the helper interface unchanged in this PR. The stride-extraction refactoring can be discussed in another PR separately.
https://github.com/llvm/llvm-project/pull/225331
More information about the llvm-commits
mailing list