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 | ebd694bb0a55261584a988687b1b73a84ac50f85 (patch) | |
| tree | 37159a3c8133129e4a420e4c08cf386743a4673c /llvm/lib/CodeGen | |
| parent | 0334d91a4ac678a22151b4cd1dbc12f6cb9e2684 (diff) | |
| download | bcm5719-llvm-ebd694bb0a55261584a988687b1b73a84ac50f85.tar.gz bcm5719-llvm-ebd694bb0a55261584a988687b1b73a84ac50f85.zip | |
Add some debug output.
llvm-svn: 78687
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 16 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/ScheduleDAG.cpp | 2 |
2 files changed, 16 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index 4b265cc5597..1606532e47f 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/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; diff --git a/llvm/lib/CodeGen/ScheduleDAG.cpp b/llvm/lib/CodeGen/ScheduleDAG.cpp index bc48dc21ab1..a7508b5042d 100644 --- a/llvm/lib/CodeGen/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/ScheduleDAG.cpp @@ -285,6 +285,7 @@ void SUnit::dumpAll(const ScheduleDAG *G) const { errs() << I->getSUnit() << " - SU(" << I->getSUnit()->NodeNum << ")"; if (I->isArtificial()) errs() << " *"; + errs() << ": Latency=" << I->getLatency(); errs() << "\n"; } } @@ -303,6 +304,7 @@ void SUnit::dumpAll(const ScheduleDAG *G) const { errs() << I->getSUnit() << " - SU(" << I->getSUnit()->NodeNum << ")"; if (I->isArtificial()) errs() << " *"; + errs() << ": Latency=" << I->getLatency(); errs() << "\n"; } } |

