summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LoopDeletion.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-31 15:04:55 +0000
committerDan Gohman <gohman@apple.com>2009-10-31 15:04:55 +0000
commit4c7279ac726e338400626fca5a09b5533426eb6a (patch)
treeefe44dc30889ca61e5b9699b52b7b0e42a41958f /lib/Transforms/Scalar/LoopDeletion.cpp
parenta2aabe38ae442fa00f51526a8a149ecde417c83c (diff)
downloadllvm-4c7279ac726e338400626fca5a09b5533426eb6a.tar.gz
llvm-4c7279ac726e338400626fca5a09b5533426eb6a.tar.bz2
llvm-4c7279ac726e338400626fca5a09b5533426eb6a.tar.xz
Rename forgetLoopBackedgeTakenCount to forgetLoop, because it
clears out more information than just the stored backedge taken count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopDeletion.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopDeletion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopDeletion.cpp b/lib/Transforms/Scalar/LoopDeletion.cpp
index 3fb6c916f1..866d8b41d9 100644
--- a/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/lib/Transforms/Scalar/LoopDeletion.cpp
@@ -161,7 +161,7 @@ bool LoopDeletion::runOnLoop(Loop* L, LPPassManager& LPM) {
// Tell ScalarEvolution that the loop is deleted. Do this before
// deleting the loop so that ScalarEvolution can look at the loop
// to determine what it needs to clean up.
- SE.forgetLoopBackedgeTakenCount(L);
+ SE.forgetLoop(L);
// Connect the preheader directly to the exit block.
TerminatorInst* TI = preheader->getTerminator();