summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorKeith Walker <kwalker@arm.com>2016-09-20 16:04:31 +0000
committerKeith Walker <kwalker@arm.com>2016-09-20 16:04:31 +0000
commitf83a19ffc265df124cffe7a91c86d5ffbdc8b955 (patch)
tree4f1acd26e246949f256241d79b7f2fcafa96fc1c /llvm/lib/CodeGen/LiveDebugValues.cpp
parentd9bce5062ef3c4df89319c17e4fc2cf46a46501b (diff)
downloadbcm5719-llvm-f83a19ffc265df124cffe7a91c86d5ffbdc8b955.tar.gz
bcm5719-llvm-f83a19ffc265df124cffe7a91c86d5ffbdc8b955.zip
Improve the -debug output for Debug Range Extension (NFC)
Include header messages and remove unnecessary blank lines. llvm-svn: 281980
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp
index 4986895ba03..41af34e0099 100644
--- a/llvm/lib/CodeGen/LiveDebugValues.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues.cpp
@@ -260,6 +260,7 @@ void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
const VarLocMap &VarLocIDs,
const char *msg,
raw_ostream &Out) const {
+ Out << '\n' << msg << '\n';
for (const MachineBasicBlock &BB : MF) {
const auto &L = V.lookup(&BB);
Out << "MBB: " << BB.getName() << ":\n";
@@ -268,7 +269,6 @@ void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
Out << " Var: " << VL.Var.getVar()->getName();
Out << " MI: ";
VL.dump();
- Out << "\n";
}
}
Out << "\n";
@@ -468,6 +468,7 @@ bool LiveDebugValues::ExtendRanges(MachineFunction &MF) {
// thing twice. We could avoid this with a custom priority queue, but this
// is probably not worth it.
SmallPtrSet<MachineBasicBlock *, 16> OnPending;
+ DEBUG(dbgs() << "Processing Worklist\n");
while (!Worklist.empty()) {
MachineBasicBlock *MBB = OrderToBB[Worklist.top()];
Worklist.pop();
OpenPOWER on IntegriCloud