Skip to content

Commit dc7cd0e

Browse files
committed
LAA: address review
1 parent 9db56bd commit dc7cd0e

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
@@ -2043,7 +2043,7 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
20432043

20442044
// Attempt to prove strided accesses independent.
20452045
if (ConstDist) {
2046-
int64_t Distance = std::abs(ConstDist->getAPInt().getSExtValue());
2046+
uint64_t Distance = ConstDist->getAPInt().abs().getZExtValue();
20472047

20482048
// If the distance between accesses and their strides are known constants,
20492049
// check whether the accesses interlace each other.

0 commit comments

Comments
 (0)