diff options
author | Matthias Braun <matze@braunis.de> | 2018-09-19 00:23:35 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-09-19 00:23:35 +0000 |
commit | 726e12cf0ce6c926877bd8e19e6afe05e5101eeb (patch) | |
tree | 3c51890e89c9edc54677dd95cf3939a1b50b6e8c /llvm/lib/Target/PowerPC | |
parent | f6ccde781004295dc031b86ee1f19a367130db70 (diff) | |
download | bcm5719-llvm-726e12cf0ce6c926877bd8e19e6afe05e5101eeb.tar.gz bcm5719-llvm-726e12cf0ce6c926877bd8e19e6afe05e5101eeb.zip |
ScheduleDAG: Cleanup dumping code; NFC
- Instead of having both `SUnit::dump(ScheduleDAG*)` and
`ScheduleDAG::dumpNode(ScheduleDAG*)`, just keep the latter around.
- Add `ScheduleDAG::dump()` and avoid code duplication in several
places. Implement it for different ScheduleDAG variants.
- Add `ScheduleDAG::dumpNodeName()` in favor of the `SUnit::print()`
functions. They were only ever used for debug dumping and putting the
function into ScheduleDAG is consistent with the `dumpNode()` change.
llvm-svn: 342520
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp b/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp index 793a4dd7f62..cf3547f3cfb 100644 --- a/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp +++ b/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp @@ -180,9 +180,8 @@ void PPCDispatchGroupSBHazardRecognizer::EmitInstruction(SUnit *SU) { CurGroup.clear(); CurSlots = CurBranches = 0; } else { - LLVM_DEBUG(dbgs() << "**** Adding to dispatch group: SU(" << SU->NodeNum - << "): "); - LLVM_DEBUG(DAG->dumpNode(SU)); + LLVM_DEBUG(dbgs() << "**** Adding to dispatch group: "); + LLVM_DEBUG(DAG->dumpNode(*SU)); unsigned NSlots; bool MustBeFirst = mustComeFirst(MCID, NSlots); |