From: Cong Hou Date: Wed, 16 Dec 2015 06:03:30 +0000 (+0000) Subject: Minor change to TailDuplication.cpp to turn on normalization when removing successor X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=152a28a97cfc45760fef89203f95b3ba6f288b59;p=oota-llvm.git Minor change to TailDuplication.cpp to turn on normalization when removing successor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255752 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TailDuplication.cpp b/lib/CodeGen/TailDuplication.cpp index 132c069d69e..d2fbf533a78 100644 --- a/lib/CodeGen/TailDuplication.cpp +++ b/lib/CodeGen/TailDuplication.cpp @@ -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); }