forked from OSchip/llvm-project
mi-sched: print tree size in -view-misched-dags
llvm-svn: 190179
This commit is contained in:
parent
ffdbefb90c
commit
7609b7d1b5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue