projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace all weight-based interfaces in MBB with probability-based interfaces, and...
[oota-llvm.git]
/
lib
/
CodeGen
/
MIRParser
/
MIParser.cpp
diff --git
a/lib/CodeGen/MIRParser/MIParser.cpp
b/lib/CodeGen/MIRParser/MIParser.cpp
index 5a8e96df7603abdcb4ffd28475d30a5eae453792..c9c2d62cec3098366efc7be5a32828c36ee347b8 100644
(file)
--- a/
lib/CodeGen/MIRParser/MIParser.cpp
+++ b/
lib/CodeGen/MIRParser/MIParser.cpp
@@
-459,8
+459,9
@@
bool MIParser::parseBasicBlockSuccessors(MachineBasicBlock &MBB) {
if (expectAndConsume(MIToken::rparen))
return true;
}
- MBB.addSuccessor(SuccMBB,
Weight
);
+ MBB.addSuccessor(SuccMBB,
BranchProbability::getRaw(Weight)
);
} while (consumeIfPresent(MIToken::comma));
+ MBB.normalizeSuccProbs();
return false;
}