[llvm] [LAA] Add initial support for non-power-of-2 store-load forwarding distance (PR #137873)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 12:06:26 PDT 2025


================
@@ -2985,8 +3023,9 @@ LoopAccessInfo::LoopAccessInfo(Loop *L, ScalarEvolution *SE,
     MaxTargetVectorWidthInBits =
         TTI->getRegisterBitWidth(TargetTransformInfo::RGK_FixedWidthVector) * 2;
 
-  DepChecker = std::make_unique<MemoryDepChecker>(*PSE, L, SymbolicStrides,
-                                                  MaxTargetVectorWidthInBits);
+  DepChecker = std::make_unique<MemoryDepChecker>(
+      *PSE, L, SymbolicStrides, MaxTargetVectorWidthInBits,
+      TTI && TTI->hasActiveVectorLength(0, nullptr, Align()));
----------------
artagnon wrote:

Why does the prototype of `hasActiveVectorLength` accept arguments that are ignored by RISC-V? Is it overriden by any other target that use the arguments?

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


More information about the llvm-commits mailing list