diff options
author | Andrew Trick <atrick@apple.com> | 2013-09-06 17:32:42 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-09-06 17:32:42 +0000 |
commit | 7609b7d1b58810b45169adca6864669a247e313d (patch) | |
tree | ec0e174c1484b1d5ddc4b118ac56069a5113140b /llvm/lib/CodeGen | |
parent | ffdbefb90c28ff8eeb6cf72395f6bee053f163b1 (diff) | |
download | bcm5719-llvm-7609b7d1b58810b45169adca6864669a247e313d.tar.gz bcm5719-llvm-7609b7d1b58810b45169adca6864669a247e313d.zip |
mi-sched: print tree size in -view-misched-dags
llvm-svn: 190179
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 2a5881e7e6e..274fb0ef94b 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/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) { |