summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-11-25 00:43:41 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-11-25 00:43:41 +0000
commitb63fdecbacc05470c0f87de7b9979720b5215355 (patch)
treec89598a738f0793d6f16e735c1611c5ffae74299 /lib/CodeGen/MachineBlockPlacement.cpp
parent2fee935bbaa72bc0f438378156f6f741a9ab9662 (diff)
downloadllvm-b63fdecbacc05470c0f87de7b9979720b5215355.tar.gz
llvm-b63fdecbacc05470c0f87de7b9979720b5215355.tar.bz2
llvm-b63fdecbacc05470c0f87de7b9979720b5215355.tar.xz
Output a bit more information in the debug printing for MBP. This was
useful when analyzing parts of zlib's behavior here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--lib/CodeGen/MachineBlockPlacement.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp
index 00a309972a..7eec164f14 100644
--- a/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/lib/CodeGen/MachineBlockPlacement.cpp
@@ -367,7 +367,8 @@ MachineBasicBlock *MachineBlockPlacement::selectBestSuccessor(
// any CFG constraints.
if (SuccChain.LoopPredecessors != 0) {
if (SuccProb < HotProb) {
- DEBUG(dbgs() << " " << getBlockName(*SI) << " -> CFG conflict\n");
+ DEBUG(dbgs() << " " << getBlockName(*SI) << " -> " << SuccProb
+ << " (prob) (CFG conflict)\n");
continue;
}
@@ -390,8 +391,8 @@ MachineBasicBlock *MachineBlockPlacement::selectBestSuccessor(
}
}
if (BadCFGConflict) {
- DEBUG(dbgs() << " " << getBlockName(*SI)
- << " -> non-cold CFG conflict\n");
+ DEBUG(dbgs() << " " << getBlockName(*SI) << " -> " << SuccProb
+ << " (prob) (non-cold CFG conflict)\n");
continue;
}
}