Skip to content

Commit 5628fe4

Browse files
committed
!fixup remove signed case for now
1 parent 126ac2d commit 5628fe4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5114,10 +5114,6 @@ static SCEV::NoWrapFlags proveNoWrapViaBTC(const SCEVAddRecExpr *AR,
51145114
if (!AR->hasNoUnsignedWrap() &&
51155115
SE.willNotOverflow(Instruction::Add, false, AR->getStart(), ExtBTC))
51165116
Result = ScalarEvolution::setFlags(Result, SCEV::FlagNUW);
5117-
if (!AR->hasNoSignedWrap() &&
5118-
SE.willNotOverflow(Instruction::Add, true, AR->getStart(), ExtBTC) &&
5119-
SE.isKnownPredicate(CmpInst::ICMP_SGE, Add, AR->getStart()))
5120-
Result = ScalarEvolution::setFlags(Result, SCEV::FlagNSW);
51215117

51225118
return Result;
51235119
}

0 commit comments

Comments
 (0)