Revert "[NFCI][LoopDeletion] Do not call complex analysis for known non-zero BTC"
This reverts commit 7d418dadf6
.
This commit is contained in:
parent
403cfe5d70
commit
dd226803c2
|
@ -314,8 +314,6 @@ breakBackedgeIfNotTaken(Loop *L, DominatorTree &DT, ScalarEvolution &SE,
|
|||
return LoopDeletionResult::Unmodified;
|
||||
|
||||
auto *BTC = SE.getBackedgeTakenCount(L);
|
||||
if (!isa<SCEVCouldNotCompute>(BTC) && SE.isKnownNonZero(BTC))
|
||||
return LoopDeletionResult::Unmodified;
|
||||
if (!BTC->isZero() && !canProveExitOnFirstIteration(L, DT, SE, LI))
|
||||
return LoopDeletionResult::Unmodified;
|
||||
|
||||
|
|
Loading…
Reference in New Issue