Skip to content

Commit 1c59506

Browse files
committed
[LAA] Fix thinko
1 parent 1dc0934 commit 1c59506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
20712071
uint64_t ConstDistance =
20722072
match(Dist, m_scev_APInt(APDist)) ? APDist->abs().getZExtValue() : 0;
20732073

2074-
if (ConstDistance) {
2074+
if (APDist) {
20752075
// If the distance between accesses and their strides are known constants,
20762076
// check whether the accesses interlace each other.
20772077
if (ConstDistance > 0 && CommonStride && CommonStride > 1 && HasSameSize &&

0 commit comments

Comments
 (0)