[llvm-commits] [llvm] r74398 - /llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp

Dan Gohman gohman at apple.com
Sat Jun 27 15:32:36 PDT 2009


Author: djg
Date: Sat Jun 27 17:32:36 2009
New Revision: 74398

URL: http://llvm.org/viewvc/llvm-project?rev=74398&view=rev
Log:
Remove the block from the LoopInfo, rather than just the Loop.
LoopInfo will handle removing it from the Loop, as well as updating
its own tables.

Modified:
    llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp?rev=74398&r1=74397&r2=74398&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp Sat Jun 27 17:32:36 2009
@@ -312,7 +312,7 @@
       // update the dominator tree and dominance frontier, and delete it.
       assert(pred_begin(ExitingBlock) == pred_end(ExitingBlock));
       Changed = true;
-      L->removeBlockFromLoop(ExitingBlock);
+      LI->removeBlock(ExitingBlock);
 
       DominanceFrontier *DF = getAnalysisIfAvailable<DominanceFrontier>();
       DomTreeNode *Node = DT->getNode(ExitingBlock);





More information about the llvm-commits mailing list