Skip to content

Commit 54f7d6f

Browse files
committed
Address review comment
1 parent 93eaadd commit 54f7d6f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,9 +1546,7 @@ Value *SCEVExpander::expand(const SCEV *S) {
15461546
}
15471547
if (auto *NNI = dyn_cast<PossiblyNonNegInst>(I)) {
15481548
auto *Src = NNI->getOperand(0);
1549-
if (SE.isKnownNonNegative(SE.getSCEV(Src)) ||
1550-
isKnownNonNegative(Src, DL, 0, &SE.AC, I, &SE.DT) ||
1551-
isImpliedByDomCondition(ICmpInst::ICMP_SGE, Src,
1549+
if (isImpliedByDomCondition(ICmpInst::ICMP_SGE, Src,
15521550
Constant::getNullValue(Src->getType()), I,
15531551
DL).value_or(false))
15541552
NNI->setNonNeg(true);

0 commit comments

Comments
 (0)