Skip to content

Commit cfb317b

Browse files
committed
LAA: add comment on stride units; address review
1 parent 3bade7e commit cfb317b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/Analysis/LoopAccessAnalysis.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ class MemoryDepChecker {
365365
void mergeInStatus(VectorizationSafetyStatus S);
366366

367367
struct DepDistanceStrideAndSizeInfo {
368+
// Strides could either be scaled (in bytes, taking the size of the
369+
// underlying type into account), or unscaled (in indexing units; unscaled
370+
// stride = scaled stride / size of underlying type). Here, strides are
371+
// unscaled.
368372
const SCEV *Dist;
369373
uint64_t MaxStride;
370374
std::optional<uint64_t> CommonStride;

0 commit comments

Comments
 (0)