aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/PostRASchedulerList.cpp
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
commit958921a663e7b11ad8dcb246924864548d4810e7 (patch)
tree274ae094caa2610d02efe353ff51e9997a3a9be9 /lib/CodeGen/PostRASchedulerList.cpp
parent28aff231cfcbf047bcf618c7fb371ac4544ee9f8 (diff)
downloadexternal_llvm-958921a663e7b11ad8dcb246924864548d4810e7.tar.gz
external_llvm-958921a663e7b11ad8dcb246924864548d4810e7.tar.bz2
external_llvm-958921a663e7b11ad8dcb246924864548d4810e7.zip
Add debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--lib/CodeGen/PostRASchedulerList.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp
index 66bcf8cec8..e52158cfeb 100644
--- a/lib/CodeGen/PostRASchedulerList.cpp
+++ b/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.