projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b6783a
)
Print out MachineBasicBlock successor weights when available.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Mon, 13 Aug 2012 23:13:23 +0000
(23:13 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Mon, 13 Aug 2012 23:13:23 +0000
(23:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161804
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineBasicBlock.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineBasicBlock.cpp
b/lib/CodeGen/MachineBasicBlock.cpp
index fd4cb5fab0b408bf5e9434de038df758b5859e00..8bf0cc96565c066874bbf49f139f600a9011af8c 100644
(file)
--- a/
lib/CodeGen/MachineBasicBlock.cpp
+++ b/
lib/CodeGen/MachineBasicBlock.cpp
@@
-311,8
+311,11
@@
void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
if (!succ_empty()) {
if (Indexes) OS << '\t';
OS << " Successors according to CFG:";
- for (const_succ_iterator SI = succ_begin(), E = succ_end(); SI != E; ++SI)
+ for (const_succ_iterator SI = succ_begin(), E = succ_end(); SI != E; ++SI)
{
OS << " BB#" << (*SI)->getNumber();
+ if (!Weights.empty())
+ OS << '(' << *getWeightIterator(SI) << ')';
+ }
OS << '\n';
}
}