[llvm] [LAA] Avoid unprofitable unit-stride versioning (PR #225331)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 00:59:26 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,
----------------
david-arm wrote:
This change seems sensible and is NFC. It could be done in a separate PR I think.
https://github.com/llvm/llvm-project/pull/225331
More information about the llvm-commits
mailing list