[DA] Remove dead code from the Weak Crossing SIV test (#190355)
The ConstantRange intersection check can now handle cases where the condition of this branch is satisfied. The check is performed before entering this function, so this part is no longer necessary.
This commit is contained in:
parent
7f9e4fe708
commit
85e2a36501
@ -1402,17 +1402,6 @@ bool DependenceInfo::weakCrossingSIVtest(const SCEVAddRecExpr *Src,
|
||||
if (!ConstDelta)
|
||||
return false;
|
||||
|
||||
// We're certain that ConstCoeff > 0; therefore,
|
||||
// if Delta < 0, then no dependence.
|
||||
LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n");
|
||||
LLVM_DEBUG(dbgs() << "\t ConstCoeff = " << *ConstCoeff << "\n");
|
||||
if (SE->isKnownNegative(Delta)) {
|
||||
// No dependence, Delta < 0
|
||||
++WeakCrossingSIVindependence;
|
||||
++WeakCrossingSIVsuccesses;
|
||||
return true;
|
||||
}
|
||||
|
||||
ConstantRange SrcRange = SE->getSignedRange(Src);
|
||||
ConstantRange DstRange = SE->getSignedRange(Dst);
|
||||
LLVM_DEBUG(dbgs() << "\t SrcRange = " << SrcRange << "\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user