Skip to content

Commit 266c706

Browse files
committed
small other fixes
1 parent 6fadfdc commit 266c706

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,11 +3510,10 @@ DependenceInfo::depends(Instruction *Src, Instruction *Dst,
35103510
SCEVUnionPredicate(Assume, *SE));
35113511
}
35123512

3513-
if (!Assume.empty() && !UnderRuntimeAssumptions) {
3514-
// Runtime assumptions needed but not allowed.
3513+
// Runtime assumptions needed but not allowed.
3514+
if (!Assume.empty() && !UnderRuntimeAssumptions)
35153515
return std::make_unique<Dependence>(Src, Dst,
35163516
SCEVUnionPredicate(Assume, *SE));
3517-
}
35183517

35193518
unsigned Pairs = 1;
35203519
SmallVector<Subscript, 2> Pair(Pairs);

llvm/test/Analysis/DependenceAnalysis/zero-coefficient.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: opt < %s -disable-output "-passes=print<da>" -aa-pipeline=basic-aa 2>&1 \
33
; RUN: | FileCheck %s
44

5-
; Test case for bug fix where Strong SIV test incorrectly concludes "no dependence"
5+
; Test case for bug #149991 where Strong SIV test incorrectly concludes "no dependence"
66
; when the coefficient is symbolic (unknown at compile time) and delta is zero.
77
;
88
; In this case, the array access is A[k*i] with both src and dst at the same

0 commit comments

Comments
 (0)