diff options
author | David Goodwin <david_goodwin@apple.com> | 2009-08-11 17:35:23 +0000 |
---|---|---|
committer | David Goodwin <david_goodwin@apple.com> | 2009-08-11 17:35:23 +0000 |
commit | c93d8373c93159c590838957b3194900caeb8a03 (patch) | |
tree | 4c5b16bfe9f17d951cc4913a588f1e7063f0c25f /lib/CodeGen/PostRASchedulerList.cpp | |
parent | 754bdacf4675a75031ece44aa23f82c000cd1be8 (diff) |
Add some debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r-- | lib/CodeGen/PostRASchedulerList.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp index 4b265cc559..1606532e47 100644 --- a/lib/CodeGen/PostRASchedulerList.cpp +++ b/lib/CodeGen/PostRASchedulerList.cpp @@ -557,7 +557,7 @@ bool SchedulePostRATDList::BreakAntiDependencies() { // isn't A which is free. This re-introduces anti-dependencies // at all but one of the original anti-dependencies that we were // trying to break. To avoid this, keep track of the most recent - // register that each register was replaced with, avoid avoid + // register that each register was replaced with, avoid // using it to repair an anti-dependence on the same register. // This lets us produce this: // A = ... @@ -825,7 +825,19 @@ void SchedulePostRATDList::ListScheduleTopDown() { } else if (PendingQueue[i]->getDepth() < MinDepth) MinDepth = PendingQueue[i]->getDepth(); } - + +#ifndef NDEBUG + { + errs() << "\n*** Examining Available\n"; + LatencyPriorityQueue q = AvailableQueue; + while (!q.empty()) { + SUnit *su = q.pop(); + errs() << "Height " << su->getHeight() << ": "; + su->dump(this); + } + } +#endif + SUnit *FoundSUnit = 0; bool HasNoopHazards = false; |