diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-11-25 00:43:41 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-11-25 00:43:41 +0000 |
commit | 260258b9c0766cfdc10354f6b03dafa834441129 (patch) | |
tree | 9a1ddb586d70ad8042ea54008c05f825def76586 /llvm/lib/CodeGen/MachineBlockPlacement.cpp | |
parent | 272e9bc513cc698faa4c711f33a42fb2510d847f (diff) | |
download | llvm-260258b9c0766cfdc10354f6b03dafa834441129.zip llvm-260258b9c0766cfdc10354f6b03dafa834441129.tar.gz llvm-260258b9c0766cfdc10354f6b03dafa834441129.tar.bz2 |
Output a bit more information in the debug printing for MBP. This was
useful when analyzing parts of zlib's behavior here.
llvm-svn: 195588
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBlockPlacement.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index 00a3099..7eec164 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/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; } } |