diff options
| author | Cong Hou <congh@google.com> | 2015-12-13 09:26:17 +0000 |
|---|---|---|
| committer | Cong Hou <congh@google.com> | 2015-12-13 09:26:17 +0000 |
| commit | c106989fd5ca0f39f5e88d06a90a1227d037d43e (patch) | |
| tree | 9016259591672095defee02eef1659101612454a /llvm/lib/CodeGen/EarlyIfConversion.cpp | |
| parent | 7f8b43d42478a2d8140f2949314dcfa34071ac28 (diff) | |
| download | bcm5719-llvm-c106989fd5ca0f39f5e88d06a90a1227d037d43e.tar.gz bcm5719-llvm-c106989fd5ca0f39f5e88d06a90a1227d037d43e.zip | |
Normalize MBB's successors' probabilities in several locations.
This patch adds some missing calls to MBB::normalizeSuccProbs() in several
locations where it should be called. Those places are found by checking if the
sum of successors' probabilities is approximate one in MachineBlockPlacement
pass with some instrumented code (not in this patch).
Differential revision: http://reviews.llvm.org/D15259
llvm-svn: 255455
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/EarlyIfConversion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp index fbc4d97c498..f3536d74111 100644 --- a/llvm/lib/CodeGen/EarlyIfConversion.cpp +++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp @@ -538,11 +538,11 @@ void SSAIfConv::convertIf(SmallVectorImpl<MachineBasicBlock*> &RemovedBlocks) { // Fix up the CFG, temporarily leave Head without any successors. Head->removeSuccessor(TBB); - Head->removeSuccessor(FBB); + Head->removeSuccessor(FBB, true); if (TBB != Tail) - TBB->removeSuccessor(Tail); + TBB->removeSuccessor(Tail, true); if (FBB != Tail) - FBB->removeSuccessor(Tail); + FBB->removeSuccessor(Tail, true); // Fix up Head's terminators. // It should become a single branch or a fallthrough. |

