diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-23 02:25:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-23 02:25:05 +0000 |
commit | eb0cee91f679de1601313852f82e8e6f3f33cfbf (patch) | |
tree | bf30a86202954934b3f00cd812836bcbc01e9298 /llvm/lib/Target/Alpha | |
parent | 9e8c057ab7e53e8ed620df1a95e5c45dfe033b25 (diff) | |
download | bcm5719-llvm-eb0cee91f679de1601313852f82e8e6f3f33cfbf.tar.gz bcm5719-llvm-eb0cee91f679de1601313852f82e8e6f3f33cfbf.zip |
Move the point at which FastISel taps into the SelectionDAGISel
process up to a higher level. This allows FastISel to leverage
more of SelectionDAGISel's infastructure, such as updating Machine
PHI nodes.
Also, implement transitioning from SDISel back to FastISel in
the middle of a block, so it's now possible to go back and
forth. This allows FastISel to hand individual CallInsts and other
complicated things off to SDISel to handle, while handling the rest
of the block itself.
To help support this, reorganize the SelectionDAG class so that it
is allocated once and reused throughout a function, instead of
being completely reallocated for each block.
llvm-svn: 55219
Diffstat (limited to 'llvm/lib/Target/Alpha')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index 0ff735d28eb..ce6afc3b81b 100644 --- a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -163,7 +163,7 @@ namespace { /// InstructionSelect - This callback is invoked by /// SelectionDAGISel when it has created a SelectionDAG for us to codegen. - virtual void InstructionSelect(SelectionDAG &DAG); + virtual void InstructionSelect(); virtual const char *getPassName() const { return "Alpha DAG->DAG Pattern Instruction Selection"; @@ -173,8 +173,7 @@ namespace { /// inline asm expressions. virtual bool SelectInlineAsmMemoryOperand(const SDValue &Op, char ConstraintCode, - std::vector<SDValue> &OutOps, - SelectionDAG &DAG) { + std::vector<SDValue> &OutOps) { SDValue Op0; switch (ConstraintCode) { default: return true; @@ -232,12 +231,12 @@ SDValue AlphaDAGToDAGISel::getGlobalRetAddr() { /// InstructionSelect - This callback is invoked by /// SelectionDAGISel when it has created a SelectionDAG for us to codegen. -void AlphaDAGToDAGISel::InstructionSelect(SelectionDAG &DAG) { +void AlphaDAGToDAGISel::InstructionSelect() { DEBUG(BB->dump()); // Select target instructions for the DAG. SelectRoot(); - DAG.RemoveDeadNodes(); + CurDAG->RemoveDeadNodes(); } // Select - Convert the specified operand from a target-independent to a |