diff options
author | Andrew Trick <atrick@apple.com> | 2012-03-07 00:18:22 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-03-07 00:18:22 +0000 |
commit | 56b94c52c9bf0342106ca7d274b9bb469d5ef619 (patch) | |
tree | 8142fc1ee1e1404cd0b6961354d97eb3f0e7e3f4 /lib/CodeGen/ScheduleDAGInstrs.cpp | |
parent | 8ceaa660bfec72249976c1f411db7f40cbc438bb (diff) | |
download | llvm-56b94c52c9bf0342106ca7d274b9bb469d5ef619.tar.gz llvm-56b94c52c9bf0342106ca7d274b9bb469d5ef619.tar.bz2 llvm-56b94c52c9bf0342106ca7d274b9bb469d5ef619.tar.xz |
Cleanup in preparation for misched: Move DAG visualization logic.
Soon, ScheduleDAG will not refer to the BB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.cpp')
-rw-r--r-- | lib/CodeGen/ScheduleDAGInstrs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index c0ccdb33e8..bad6286b4d 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -808,6 +808,12 @@ std::string ScheduleDAGInstrs::getGraphNodeLabel(const SUnit *SU) const { return oss.str(); } +/// Return the basic block label. It is not necessarilly unique because a block +/// contains multiple scheduling regions. But it is fine for visualization. +std::string ScheduleDAGInstrs::getDAGName() const { + return "dag." + BB->getFullName(); +} + // EmitSchedule - Emit the machine code in scheduled order. MachineBasicBlock *ScheduleDAGInstrs::EmitSchedule() { Begin = InsertPos; |