diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-13 21:21:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-13 21:21:28 +0000 |
commit | a23b3b803e3c65e84d6cadaa221de8b256cbe28d (patch) | |
tree | 12617e8167fb13e7cf02f62a7b69d2369eb632c7 /lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp | |
parent | eee085287884c94ee8576c997ef033b8088ae519 (diff) |
Change ScheduleDAG's DAG member from a reference to a pointer, to prepare
for the possibility of scheduling without a SelectionDAG being present.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp index 178c3f6ca4..de9ae72ff3 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp @@ -62,7 +62,7 @@ private: HazardRecognizer *HazardRec; public: - ScheduleDAGList(SelectionDAG &dag, MachineBasicBlock *bb, + ScheduleDAGList(SelectionDAG *dag, MachineBasicBlock *bb, const TargetMachine &tm, SchedulingPriorityQueue *availqueue, HazardRecognizer *HR) @@ -142,7 +142,7 @@ void ScheduleDAGList::ReleaseSucc(SUnit *SuccSU, bool isChain) { /// the Available queue. void ScheduleDAGList::ScheduleNodeTopDown(SUnit *SU, unsigned CurCycle) { DOUT << "*** Scheduling [" << CurCycle << "]: "; - DEBUG(SU->dump(&DAG)); + DEBUG(SU->dump(DAG)); Sequence.push_back(SU); SU->Cycle = CurCycle; @@ -264,7 +264,7 @@ void ScheduleDAGList::ListScheduleTopDown() { if (SUnits[i].NumPredsLeft != 0) { if (!AnyNotSched) cerr << "*** List scheduling failed! ***\n"; - SUnits[i].dump(&DAG); + SUnits[i].dump(DAG); cerr << "has not been scheduled!\n"; AnyNotSched = true; } @@ -543,7 +543,7 @@ ScheduleDAG* llvm::createTDListDAGScheduler(SelectionDAGISel *IS, SelectionDAG *DAG, const TargetMachine *TM, MachineBasicBlock *BB, bool Fast) { - return new ScheduleDAGList(*DAG, BB, *TM, + return new ScheduleDAGList(DAG, BB, *TM, new LatencyPriorityQueue(), IS->CreateTargetHazardRecognizer()); } |