summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commit79396539d385c373760f0dc056c5dc0ce668a4ff (patch)
tree888cf4fefd2084858b23b8e35e98b06484eb9d79 /llvm/lib/Transforms
parent21381e8424b5c6ff18cb3d5c5cbacb5c8097562e (diff)
downloadbcm5719-llvm-79396539d385c373760f0dc056c5dc0ce668a4ff.tar.gz
bcm5719-llvm-79396539d385c373760f0dc056c5dc0ce668a4ff.zip
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. llvm-svn: 22775
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopSimplify.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp b/llvm/lib/Transforms/Scalar/LoopSimplify.cpp
index fcea05402d0..2df10ce92f4 100644
--- a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/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>();
OpenPOWER on IntegriCloud