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
// 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);