aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-13 01:30:36 +0000
committerChris Lattner <sabre@nondot.org>2005-08-13 01:30:36 +0000
commit8385393dc897ddba1cd86c5a05dd85df63316d87 (patch)
treee696acd2cefa6d7a276acab7b3c8c5af1e05ad24 /lib/Transforms/Utils/LoopSimplify.cpp
parent3e27b1f5c4bbbc5729a154b9b76b4231bb0ad9b9 (diff)
remove dead code. The exit block list is computed on demand, thus does not
need to be updated. This code is a relic from when it did. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--lib/Transforms/Utils/LoopSimplify.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp
index fcea05402d..2df10ce92f 100644
--- a/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/lib/Transforms/Utils/LoopSimplify.cpp
@@ -325,21 +325,6 @@ void LoopSimplify::InsertPreheaderForLoop(Loop *L) {
if (Loop *Parent = L->getParentLoop())
Parent->addBasicBlockToLoop(NewBB, getAnalysis<LoopInfo>());
- // If the header for the loop used to be an exit node for another loop, then
- // we need to update this to know that the loop-preheader is now the exit
- // node. Note that the only loop that could have our header as an exit node
- // is a sibling loop, ie, one with the same parent loop, or one if it's
- // children.
- //
- LoopInfo::iterator ParentLoops, ParentLoopsE;
- if (Loop *Parent = L->getParentLoop()) {
- ParentLoops = Parent->begin();
- ParentLoopsE = Parent->end();
- } else { // Must check top-level loops...
- ParentLoops = getAnalysis<LoopInfo>().begin();
- ParentLoopsE = getAnalysis<LoopInfo>().end();
- }
-
DominatorSet &DS = getAnalysis<DominatorSet>(); // Update dominator info
DominatorTree &DT = getAnalysis<DominatorTree>();