[llvm] [SLP] Avoid seeding related affine loop address computations (PR #226220)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 06:40:58 PDT 2026
================
@@ -1003,6 +1007,101 @@ bool isOnceUsedSeed(const Instruction *I) {
I);
}
+/// Returns true if \p Ptr is only used by scalar loads and stores, directly or
+/// through getelementptrs with constant offsets.
+static bool onlyFeedsScalarAccesses(Value *Ptr, bool ReVec,
+ unsigned Depth = 0) {
+ constexpr unsigned MaxDepth = 2;
----------------
alexey-bataev wrote:
```suggestion
unsigned Depth = 2) {
```
https://github.com/llvm/llvm-project/pull/226220
More information about the llvm-commits
mailing list