diff options
author | Andrew Trick <atrick@apple.com> | 2013-06-15 04:49:42 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-06-15 04:49:42 +0000 |
commit | eda39a9d691c4168cc8d1d0c0d03631281886ff1 (patch) | |
tree | 9b2d84495be4cff512d66b4ede2efe44112e167d /lib | |
parent | 7e6d620336d75c75086905184c451c6a2a21d6a3 (diff) | |
download | llvm-eda39a9d691c4168cc8d1d0c0d03631281886ff1.tar.gz llvm-eda39a9d691c4168cc8d1d0c0d03631281886ff1.tar.bz2 llvm-eda39a9d691c4168cc8d1d0c0d03631281886ff1.tar.xz |
MI-Sched: DEBUG: print critical resource.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/MachineScheduler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index 7e7ad37acb..adc2d7ab81 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/lib/CodeGen/MachineScheduler.cpp @@ -1421,6 +1421,10 @@ init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { CritResIdx = PIdx; } } + DEBUG(dbgs() << "Critical Resource: " + << SchedModel->getProcResource(CritResIdx)->Name + << ": " << RemainingCounts[CritResIdx] + << " / " << SchedModel->getLatencyFactor() << '\n'); } void ConvergingScheduler::SchedBoundary:: |