[llvm] [LAA] Avoid unprofitable unit-stride versioning (PR #225331)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 14:13:19 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,
----------------
artagnon wrote:
We're not changing any "interface" here: this is a static function that can no longer return anything but a SCEVUnknown?
https://github.com/llvm/llvm-project/pull/225331
More information about the llvm-commits
mailing list