[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:27:36 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:
nit: move to `MaxStride`?
```suggestion
/// 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.
uint64_t MaxStride;
```
https://github.com/llvm/llvm-project/pull/122113
More information about the llvm-commits
mailing list