Skip to content

Commit 62fded6

Browse files
authored
[DA] Remove redundant check in the Weak Zero SIV tests (NFCI) (#188922)
The trivial disjoint checks in several dependence tests were consolidated into a single invocation in #187435. However, the duplicated check still remains in the Weak Crossing SIV tests. This is redundant and should be deleted as well.
1 parent 0af58d3 commit 62fded6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,14 +1783,6 @@ bool DependenceInfo::weakZeroSIVtestImpl(const SCEVAddRecExpr *AR,
17831783
const SCEV *ARCoeff = AR->getStepRecurrence(*SE);
17841784
const SCEV *ARConst = AR->getStart();
17851785

1786-
ConstantRange ARRange = SE->getSignedRange(AR);
1787-
ConstantRange ConstRange = SE->getSignedRange(Const);
1788-
if (ARRange.intersectWith(ConstRange).isEmptySet()) {
1789-
++WeakZeroSIVindependence;
1790-
++WeakZeroSIVsuccesses;
1791-
return true;
1792-
}
1793-
17941786
if (!AR->hasNoSignedWrap())
17951787
return false;
17961788

0 commit comments

Comments
 (0)