Skip to content

Commit 0c84efe

Browse files
committed
Cleanup: DAG building is specific to either SD or MI scheduling. Not part of the target interface.
llvm-svn: 152174
1 parent 3222c09 commit 0c84efe

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

llvm/include/llvm/CodeGen/ScheduleDAG.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,6 @@ namespace llvm {
549549
///
550550
void Run(MachineBasicBlock *bb, MachineBasicBlock::iterator insertPos);
551551

552-
/// BuildSchedGraph - Build SUnits and set up their Preds and Succs
553-
/// to form the scheduling dependency graph.
554-
///
555-
virtual void BuildSchedGraph(AliasAnalysis *AA) = 0;
556-
557552
/// ComputeLatency - Compute node latency.
558553
///
559554
virtual void ComputeLatency(SUnit *SU) = 0;

llvm/lib/CodeGen/ScheduleDAGInstrs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ namespace llvm {
245245

246246
/// BuildSchedGraph - Build SUnits from the MachineBasicBlock that we are
247247
/// input.
248-
virtual void BuildSchedGraph(AliasAnalysis *AA);
248+
void BuildSchedGraph(AliasAnalysis *AA);
249249

250250
/// AddSchedBarrierDeps - Add dependencies from instructions in the current
251251
/// list of instructions being scheduled to scheduling barrier. We want to

llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace llvm {
7979
/// are input. This SUnit graph is similar to the SelectionDAG, but
8080
/// excludes nodes that aren't interesting to scheduling, and represents
8181
/// flagged together nodes with a single SUnit.
82-
virtual void BuildSchedGraph(AliasAnalysis *AA);
82+
void BuildSchedGraph(AliasAnalysis *AA);
8383

8484
/// InitVRegCycleFlag - Set isVRegCycle if this node's single use is
8585
/// CopyToReg and its only active data operands are CopyFromReg within a

0 commit comments

Comments
 (0)