[llvm-branch-commits] [llvm-branch] r84014 - /llvm/branches/Apple/Leela/lib/CodeGen/PostRASchedulerList.cpp
Bill Wendling
isanbard at gmail.com
Tue Oct 13 13:03:14 PDT 2009
Author: void
Date: Tue Oct 13 15:03:13 2009
New Revision: 84014
URL: http://llvm.org/viewvc/llvm-project?rev=84014&view=rev
Log:
$ svn merge -c 84011 https://llvm.org/svn/llvm-project/llvm/trunk
--- Merging r84011 into '.':
U lib/CodeGen/PostRASchedulerList.cpp
Modified:
llvm/branches/Apple/Leela/lib/CodeGen/PostRASchedulerList.cpp
Modified: llvm/branches/Apple/Leela/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/lib/CodeGen/PostRASchedulerList.cpp?rev=84014&r1=84013&r2=84014&view=diff
==============================================================================
--- llvm/branches/Apple/Leela/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/branches/Apple/Leela/lib/CodeGen/PostRASchedulerList.cpp Tue Oct 13 15:03:13 2009
@@ -643,8 +643,18 @@
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.
More information about the llvm-branch-commits
mailing list