Cleanup: DAG building is specific to either SD or MI scheduling. Not part of the...
authorAndrew Trick <atrick@apple.com>
Wed, 7 Mar 2012 00:18:12 +0000 (00:18 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 7 Mar 2012 00:18:12 +0000 (00:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152174 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ScheduleDAG.h
lib/CodeGen/ScheduleDAGInstrs.h
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h

index e75d9361843f1223ecf6b04971d0b4d71a04b116..a6ad732c0bebfaf5364b7586f6eb71bfe592a998 100644 (file)
@@ -549,11 +549,6 @@ namespace llvm {
     ///
     void Run(MachineBasicBlock *bb, MachineBasicBlock::iterator insertPos);
 
-    /// BuildSchedGraph - Build SUnits and set up their Preds and Succs
-    /// to form the scheduling dependency graph.
-    ///
-    virtual void BuildSchedGraph(AliasAnalysis *AA) = 0;
-
     /// ComputeLatency - Compute node latency.
     ///
     virtual void ComputeLatency(SUnit *SU) = 0;
index e3aaffb630b50bc53edec43500fd130716a35065..248c273a7284ece4bb51d1d1ad61d0dc721ff049 100644 (file)
@@ -245,7 +245,7 @@ namespace llvm {
 
     /// BuildSchedGraph - Build SUnits from the MachineBasicBlock that we are
     /// input.
-    virtual void BuildSchedGraph(AliasAnalysis *AA);
+    void BuildSchedGraph(AliasAnalysis *AA);
 
     /// AddSchedBarrierDeps - Add dependencies from instructions in the current
     /// list of instructions being scheduled to scheduling barrier. We want to
index 17b49011ed55d311379882cefc723b60fa9cf15b..d7e13d7b25c1fffdd302fa878fb1c02374bfdae0 100644 (file)
@@ -79,7 +79,7 @@ namespace llvm {
     /// are input.  This SUnit graph is similar to the SelectionDAG, but
     /// excludes nodes that aren't interesting to scheduling, and represents
     /// flagged together nodes with a single SUnit.
-    virtual void BuildSchedGraph(AliasAnalysis *AA);
+    void BuildSchedGraph(AliasAnalysis *AA);
 
     /// InitVRegCycleFlag - Set isVRegCycle if this node's single use is
     /// CopyToReg and its only active data operands are CopyFromReg within a