mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
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
This commit is contained in:
parent
1251bcccc1
commit
fd30312c49
@ -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…
x
Reference in New Issue
Block a user