We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7f6b9 commit 9db56bdCopy full SHA for 9db56bd
llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -1983,7 +1983,7 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
1983
1984
// Both Src and Sink have a constant stride, check if they are in the same
1985
// direction.
1986
- if (StrideAPtrInt > 0 != StrideBPtrInt > 0) {
+ if ((StrideAPtrInt > 0) != (StrideBPtrInt > 0)) {
1987
LLVM_DEBUG(
1988
dbgs() << "Pointer access with strides in different directions\n");
1989
return MemoryDepChecker::Dependence::Unknown;
0 commit comments