summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-10-13 19:16:03 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-10-13 19:16:03 +0000
commit4c98efb91707c9633122744e19d26d268319ac9f (patch)
tree2af0a105b4d4c281b07abdcb8cc9ea8c9391e1b8 /llvm
parent5d81cb208465fbd9a9eb8ba9c1529ebf1c322d54 (diff)
downloadbcm5719-llvm-4c98efb91707c9633122744e19d26d268319ac9f.tar.gz
bcm5719-llvm-4c98efb91707c9633122744e19d26d268319ac9f.zip
Add debugging output.
llvm-svn: 84011
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index 66bcf8cec82..e52158cfeb4 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -643,8 +643,18 @@ bool SchedulePostRATDList::BreakAntiDependencies() {
Max = SU;
}
- DEBUG(errs() << "Critical path has total latency "
- << (Max->getDepth() + Max->Latency) << "\n");
+#ifndef NDEBUG
+ {
+ DEBUG(errs() << "Critical path has total latency "
+ << (Max->getDepth() + Max->Latency) << "\n");
+ DEBUG(errs() << "Available regs:");
+ for (unsigned Reg = 0; Reg < TRI->getNumRegs(); ++Reg) {
+ if (KillIndices[Reg] == ~0u)
+ DEBUG(errs() << " " << TRI->getName(Reg));
+ }
+ DEBUG(errs() << '\n');
+ }
+#endif
// Track progress along the critical path through the SUnit graph as we walk
// the instructions.
OpenPOWER on IntegriCloud