mi-sched: print tree size in -view-misched-dags

llvm-svn: 190179
This commit is contained in:
Andrew Trick 2013-09-06 17:32:42 +00:00
parent ffdbefb90c
commit 7609b7d1b5
1 changed files with 5 additions and 1 deletions

View File

@ -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) {