Skip to content

Commit 9db56bd

Browse files
committed
LAA: fix nit
1 parent aa7f6b9 commit 9db56bd

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
@@ -1983,7 +1983,7 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
19831983

19841984
// Both Src and Sink have a constant stride, check if they are in the same
19851985
// direction.
1986-
if (StrideAPtrInt > 0 != StrideBPtrInt > 0) {
1986+
if ((StrideAPtrInt > 0) != (StrideBPtrInt > 0)) {
19871987
LLVM_DEBUG(
19881988
dbgs() << "Pointer access with strides in different directions\n");
19891989
return MemoryDepChecker::Dependence::Unknown;

0 commit comments

Comments
 (0)