[llvm] LAA: refactor dependence class to prep for scaled strides (NFC) (PR #122113)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 03:59:57 PST 2025
================
@@ -365,17 +365,25 @@ class MemoryDepChecker {
void mergeInStatus(VectorizationSafetyStatus S);
struct DepDistanceStrideAndSizeInfo {
+ // Strides could either be scaled (in bytes, taking the size of the
+ // underlying type into account), or unscaled (in indexing units; unscaled
+ // stride = scaled stride / size of underlying type). Here, strides are
+ // unscaled.
const SCEV *Dist;
- uint64_t StrideA;
- uint64_t StrideB;
+ uint64_t MaxStride;
----------------
fhahn wrote:
It applies to all strides, but not `Dist`, maybe separate the comment from Dist with a newline (and a newline after the strides)?
https://github.com/llvm/llvm-project/pull/122113
More information about the llvm-commits
mailing list