Skip to content

Commit 126ac2d

Browse files
committed
!fixup remove check
1 parent 8676bce commit 126ac2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5112,8 +5112,7 @@ static SCEV::NoWrapFlags proveNoWrapViaBTC(const SCEVAddRecExpr *AR,
51125112
// AR has a step of 1, it is NUW/NSW if Start + BTC >= Start.
51135113
const SCEV *Add = SE.getAddExpr(AR->getStart(), ExtBTC);
51145114
if (!AR->hasNoUnsignedWrap() &&
5115-
SE.willNotOverflow(Instruction::Add, false, AR->getStart(), ExtBTC) &&
5116-
SE.isKnownPredicate(CmpInst::ICMP_UGE, Add, AR->getStart()))
5115+
SE.willNotOverflow(Instruction::Add, false, AR->getStart(), ExtBTC))
51175116
Result = ScalarEvolution::setFlags(Result, SCEV::FlagNUW);
51185117
if (!AR->hasNoSignedWrap() &&
51195118
SE.willNotOverflow(Instruction::Add, true, AR->getStart(), ExtBTC) &&

0 commit comments

Comments
 (0)