remove llvm.part.set.* and llvm.part.select.*. They have never been
[oota-llvm.git] / lib / CodeGen / MachineBasicBlock.cpp
index 5ac54ea8a44389b0f74a005e1cf47b2638093f6e..71e6b3e4d0f8694d9cd1d3e94b131cd5a712bdeb 100644 (file)
@@ -305,11 +305,9 @@ void MachineBasicBlock::ReplaceUsesOfBlockWith(MachineBasicBlock *Old,
         I->getOperand(i).setMBB(New);
   }
 
-  // Update the successor information.  If New was already a successor, just
-  // remove the link to Old instead of creating another one.  PR 1444.
+  // Update the successor information.
   removeSuccessor(Old);
-  if (!isSuccessor(New))
-    addSuccessor(New);
+  addSuccessor(New);
 }
 
 /// CorrectExtraCFGEdges - Various pieces of code can cause excess edges in the