summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TailDuplication.cpp
diff options
context:
space:
mode:
authorCong Hou <congh@google.com>2015-12-14 19:11:54 +0000
committerCong Hou <congh@google.com>2015-12-14 19:11:54 +0000
commitc5f510bc2332a7f139e0bcf2948adf27a6807487 (patch)
treefa59ea2b9a069794c3218d6da3658004a0923ab8 /llvm/lib/CodeGen/TailDuplication.cpp
parentadfec011e130ef110040b80400f0d8e7738388bb (diff)
downloadbcm5719-llvm-c5f510bc2332a7f139e0bcf2948adf27a6807487.tar.gz
bcm5719-llvm-c5f510bc2332a7f139e0bcf2948adf27a6807487.zip
Remove the successor probabilities normalization in tail duplication pass.
The normalization may cause assertion failures on SystemZ and some out-of-tree tests. The root cause is that unknown probabilities are materialized into known ones by calling getSuccProbability(), which is then used to add another successor to the same MBB which results in mixed known and unknown probabilities. But currently those mixed probabilities cannot be normalized. I will compose another patch to fix the root issue. llvm-svn: 255530
Diffstat (limited to 'llvm/lib/CodeGen/TailDuplication.cpp')
-rw-r--r--llvm/lib/CodeGen/TailDuplication.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TailDuplication.cpp b/llvm/lib/CodeGen/TailDuplication.cpp
index 9bd15dd6ec7..1f5b54866ac 100644
--- a/llvm/lib/CodeGen/TailDuplication.cpp
+++ b/llvm/lib/CodeGen/TailDuplication.cpp
@@ -751,7 +751,6 @@ TailDuplicatePass::duplicateSimpleBB(MachineBasicBlock *TailBB,
assert(NumSuccessors <= 1);
if (NumSuccessors == 0 || *PredBB->succ_begin() != NewTarget)
PredBB->addSuccessor(NewTarget, Prob);
- PredBB->normalizeSuccProbs();
TDBBs.push_back(PredBB);
}
OpenPOWER on IntegriCloud