Minor change to TailDuplication.cpp to turn on normalization when removing successor

llvm-svn: 255752
This commit is contained in:
Cong Hou 2015-12-16 06:03:30 +00:00
parent 0d80a00b30
commit 6b60683156

View File

@ -748,7 +748,7 @@ TailDuplicatePass::duplicateSimpleBB(MachineBasicBlock *TailBB,
if (!PredBB->isSuccessor(NewTarget))
PredBB->replaceSuccessor(TailBB, NewTarget);
else {
PredBB->removeSuccessor(TailBB, 0);
PredBB->removeSuccessor(TailBB, true);
assert(PredBB->succ_size() <= 1);
}