Normalize MBB's successors' probabilities in several locations.
[oota-llvm.git] / lib / Target / AArch64 / AArch64ConditionalCompares.cpp
index 920f4094a45f2790fa960a19ab375b9fd011ca28..df1320fbd4c95177a9c9677dfab17d4808bc7876 100644 (file)
@@ -567,8 +567,8 @@ void SSACCmpConv::convert(SmallVectorImpl<MachineBasicBlock *> &RemovedBlocks) {
   // All CmpBB instructions are moved into Head, and CmpBB is deleted.
   // Update the CFG first.
   updateTailPHIs();
-  Head->removeSuccessor(CmpBB);
-  CmpBB->removeSuccessor(Tail);
+  Head->removeSuccessor(CmpBB, true);
+  CmpBB->removeSuccessor(Tail, true);
   Head->transferSuccessorsAndUpdatePHIs(CmpBB);
   DebugLoc TermDL = Head->getFirstTerminator()->getDebugLoc();
   TII->RemoveBranch(*Head);