diff options
| author | David Goodwin <david_goodwin@apple.com> | 2009-10-13 19:16:03 +0000 |
|---|---|---|
| committer | David Goodwin <david_goodwin@apple.com> | 2009-10-13 19:16:03 +0000 |
| commit | 4c98efb91707c9633122744e19d26d268319ac9f (patch) | |
| tree | 2af0a105b4d4c281b07abdcb8cc9ea8c9391e1b8 /llvm/lib/CodeGen/PostRASchedulerList.cpp | |
| parent | 5d81cb208465fbd9a9eb8ba9c1529ebf1c322d54 (diff) | |
| download | llvm-4c98efb91707c9633122744e19d26d268319ac9f.zip llvm-4c98efb91707c9633122744e19d26d268319ac9f.tar.gz llvm-4c98efb91707c9633122744e19d26d268319ac9f.tar.bz2 | |
Add debugging output.
llvm-svn: 84011
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index 66bcf8ce..e52158c 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. |
