diff options
Diffstat (limited to 'lib/Transforms/Scalar/LoopDeletion.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopDeletion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopDeletion.cpp b/lib/Transforms/Scalar/LoopDeletion.cpp index b64131cf18..d7be820e74 100644 --- a/lib/Transforms/Scalar/LoopDeletion.cpp +++ b/lib/Transforms/Scalar/LoopDeletion.cpp @@ -190,7 +190,7 @@ bool LoopDeletion::runOnLoop(Loop* L, LPPassManager& LPM) { // Don't remove loops for which we can't solve the trip count. // They could be infinite, in which case we'd be changing program behavior. ScalarEvolution& SE = getAnalysis<ScalarEvolution>(); - SCEVHandle S = SE.getIterationCount(L); + SCEVHandle S = SE.getBackedgeTakenCount(L); if (isa<SCEVCouldNotCompute>(S)) return false; @@ -267,7 +267,7 @@ bool LoopDeletion::runOnLoop(Loop* L, LPPassManager& LPM) { (*LI)->eraseFromParent(); // Tell ScalarEvolution that the loop is deleted. - SE.forgetLoopIterationCount(L); + SE.forgetLoopBackedgeTakenCount(L); // Finally, the blocks from loopinfo. This has to happen late because // otherwise our loop iterators won't work. |