From ffdcba3dbdc3d87ef95e309fc158ee08c0edd0ed Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 27 Jun 2009 22:32:36 +0000 Subject: 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. llvm-svn: 74398 --- llvm/lib/Transforms/Utils/LoopSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp') diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index d035910..ee3f38a 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -312,7 +312,7 @@ ReprocessLoop: // 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(); DomTreeNode *Node = DT->getNode(ExitingBlock); -- cgit v1.1