[llvm] [LAA] Add initial support for non-power-of-2 store-load forwarding distance (PR #137873)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 05:08:54 PDT 2025
================
@@ -348,6 +366,9 @@ class MemoryDepChecker {
/// backwards-vectorizable or unknown (triggering a runtime check).
unsigned MaxTargetVectorWidthInBits = 0;
+ /// True if current target supports non-power-of-2 dependence distances.
+ bool AllowNonPow2Deps = false;
----------------
fhahn wrote:
I am not sure the name/comment are accurate? Dependence could have any distance and still be supported, e.g. a forward dependene could have a distance of 3 which is totally fine.
https://github.com/llvm/llvm-project/pull/137873
More information about the llvm-commits
mailing list