Skip to content

Commit 0aff252

Browse files
committed
[LAA] Move some comments
1 parent e51dd5d commit 0aff252

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,14 +2059,13 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
20592059
DL, SE, *(PSE.getSymbolicMaxBackedgeTakenCount()), *Dist, MaxStride))
20602060
return Dependence::NoDep;
20612061

2062-
// Attempt to prove strided accesses independent.
2063-
const APInt *APDist = nullptr;
2064-
20652062
// The rest of this function relies on ConstDist being at most 64-bits, which
20662063
// is checked earlier. Will assert if the calling code changes.
2064+
const APInt *APDist = nullptr;
20672065
uint64_t ConstDist =
20682066
match(Dist, m_scev_APInt(APDist)) ? APDist->abs().getZExtValue() : 0;
20692067

2068+
// Attempt to prove strided accesses independent.
20702069
if (APDist) {
20712070
// If the distance between accesses and their strides are known constants,
20722071
// check whether the accesses interlace each other.

0 commit comments

Comments
 (0)