From: Dan Gohman Date: Sat, 27 Jun 2009 22:32:36 +0000 (+0000) Subject: Remove the block from the LoopInfo, rather than just the Loop. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a1baee20c4b042eca1f182fc003f38ab52efc7a9;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74398 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index d03591081fb..ee3f38a9591 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/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);