[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopSimplify.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Aug 12 18:30:48 PDT 2005



Changes in directory llvm/lib/Transforms/Scalar:

LoopSimplify.cpp updated: 1.60 -> 1.61
---
Log message:

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.


---
Diffs of the changes:  (+0 -15)

 LoopSimplify.cpp |   15 ---------------
 1 files changed, 15 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.60 llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.61
--- llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.60	Wed Aug 10 12:15:20 2005
+++ llvm/lib/Transforms/Scalar/LoopSimplify.cpp	Fri Aug 12 20:30:36 2005
@@ -325,21 +325,6 @@
   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>();
 






More information about the llvm-commits mailing list