mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
Print out MachineBasicBlock successor weights when available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b6783a03f
commit
cb6889b23d
@ -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';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user