projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Normalize MBB's successors' probabilities in several locations.
[oota-llvm.git]
/
lib
/
CodeGen
/
SelectionDAG
/
SelectionDAGBuilder.cpp
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 77b52c0f2e3c6a7fd8a046f074454eda1c93c918..3b09f258952d3af2aed9a5b2cec0e9f164cbd930 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@
-2270,6
+2270,7
@@
void SelectionDAGBuilder::visitIndirectBr(const IndirectBrInst &I) {
MachineBasicBlock *Succ = FuncInfo.MBBMap[BB];
addSuccessorWithProb(IndirectBrMBB, Succ);
}
+ IndirectBrMBB->normalizeSuccProbs();
DAG.setRoot(DAG.getNode(ISD::BRIND, getCurSDLoc(),
MVT::Other, getControlRoot(),