[llvm] [LV]Split store-load forward distance analysis from other checks, NFC (PR #121156)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 17 04:49:13 PDT 2025
================
@@ -304,6 +310,10 @@ class MemoryDepChecker {
/// restrictive.
uint64_t MaxSafeVectorWidthInBits = -1U;
+ /// Maximum power-of-2 number of elements, which do not prevent store-load
+ /// forwarding, multiplied by the size of the elements in bits.
+ std::optional<uint64_t> MaxStoreLoadForwardSafeVF;
----------------
fhahn wrote:
Would it work if we set it to -1U generally and restrict it to narrower VF if there is a constraint (like in `MaxSafeVectorWidthInBits`)?
https://github.com/llvm/llvm-project/pull/121156
More information about the llvm-commits
mailing list