forked from OSchip/llvm-project
Print out MachineBasicBlock successor weights when available.
llvm-svn: 161804
This commit is contained in:
parent
8d80452076
commit
1dc107a84e
|
@ -311,8 +311,11 @@ void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
|
||||||
if (!succ_empty()) {
|
if (!succ_empty()) {
|
||||||
if (Indexes) OS << '\t';
|
if (Indexes) OS << '\t';
|
||||||
OS << " Successors according to CFG:";
|
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();
|
OS << " BB#" << (*SI)->getNumber();
|
||||||
|
if (!Weights.empty())
|
||||||
|
OS << '(' << *getWeightIterator(SI) << ')';
|
||||||
|
}
|
||||||
OS << '\n';
|
OS << '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue