summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-09-06 17:32:42 +0000
committerAndrew Trick <atrick@apple.com>2013-09-06 17:32:42 +0000
commitfd30312c492ef2d627af2df48e6d4f5d03c456bc (patch)
tree943de022f9406b723f9bc135bdfbd8da03caf718 /lib/CodeGen/MachineScheduler.cpp
parent1251bcccc1ab02b1953318c4b79fc6a590b57efe (diff)
downloadllvm-fd30312c492ef2d627af2df48e6d4f5d03c456bc.tar.gz
llvm-fd30312c492ef2d627af2df48e6d4f5d03c456bc.tar.bz2
llvm-fd30312c492ef2d627af2df48e6d4f5d03c456bc.tar.xz
mi-sched: print tree size in -view-misched-dags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--lib/CodeGen/MachineScheduler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp
index 2a5881e7e6..274fb0ef94 100644
--- a/lib/CodeGen/MachineScheduler.cpp
+++ b/lib/CodeGen/MachineScheduler.cpp
@@ -3064,7 +3064,11 @@ struct DOTGraphTraits<ScheduleDAGMI*> : public DefaultDOTGraphTraits {
static std::string getNodeLabel(const SUnit *SU, const ScheduleDAG *G) {
std::string Str;
raw_string_ostream SS(Str);
- SS << "SU(" << SU->NodeNum << ')';
+ const SchedDFSResult *DFS =
+ static_cast<const ScheduleDAGMI*>(G)->getDFSResult();
+ SS << "SU:" << SU->NodeNum;
+ if (DFS)
+ SS << " I:" << DFS->getNumInstrs(SU);
return SS.str();
}
static std::string getNodeDescription(const SUnit *SU, const ScheduleDAG *G) {