diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-30 20:45:06 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-30 20:45:06 +0000 |
commit | 0711d68fa77df0cd4e4882d98b27541cccbb4468 (patch) | |
tree | 1338885c8935e82706ecd08eade1b102428b9ac1 /llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp | |
parent | 8eb02960dbf205d4e2078c1147804f8e859595e7 (diff) | |
download | bcm5719-llvm-0711d68fa77df0cd4e4882d98b27541cccbb4468.tar.gz bcm5719-llvm-0711d68fa77df0cd4e4882d98b27541cccbb4468.zip |
Split scheduling from instruction selection.
llvm-svn: 52923
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index c7eefccd409..5275f7c5a21 100644 --- a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -161,9 +161,9 @@ namespace { // target-specific node if it hasn't already been changed. SDNode *Select(SDOperand Op); - /// InstructionSelectBasicBlock - This callback is invoked by + /// InstructionSelect - This callback is invoked by /// SelectionDAGISel when it has created a SelectionDAG for us to codegen. - virtual void InstructionSelectBasicBlock(SelectionDAG &DAG); + virtual void InstructionSelect(SelectionDAG &DAG); virtual const char *getPassName() const { return "Alpha DAG->DAG Pattern Instruction Selection"; @@ -230,17 +230,14 @@ SDOperand AlphaDAGToDAGISel::getGlobalRetAddr() { RA, MVT::i64); } -/// InstructionSelectBasicBlock - This callback is invoked by +/// InstructionSelect - This callback is invoked by /// SelectionDAGISel when it has created a SelectionDAG for us to codegen. -void AlphaDAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) { +void AlphaDAGToDAGISel::InstructionSelect(SelectionDAG &DAG) { DEBUG(BB->dump()); // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); DAG.RemoveDeadNodes(); - - // Emit machine code to BB. - ScheduleAndEmitDAG(DAG); } // Select - Convert the specified operand from a target-independent to a |