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 | f350b277f32d7d47f86c0e54f4aec4d470500618 (patch) | |
tree | 7fd5f490b6220846cd2de9eb7a8f48c0d29ea9c5 /lib/Target/Mips/MipsISelDAGToDAG.cpp | |
parent | 6679906d9724868bf2198e04952ba42f31d7b7fe (diff) | |
download | llvm-f350b277f32d7d47f86c0e54f4aec4d470500618.tar.gz llvm-f350b277f32d7d47f86c0e54f4aec4d470500618.tar.bz2 llvm-f350b277f32d7d47f86c0e54f4aec4d470500618.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Mips/MipsISelDAGToDAG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Mips/MipsISelDAGToDAG.cpp b/lib/Target/Mips/MipsISelDAGToDAG.cpp index 94fdb3526d..1e07a8f53d 100644 --- a/lib/Target/Mips/MipsISelDAGToDAG.cpp +++ b/lib/Target/Mips/MipsISelDAGToDAG.cpp @@ -66,7 +66,7 @@ public: TM(tm), MipsLowering(*TM.getTargetLowering()), Subtarget(tm.getSubtarget<MipsSubtarget>()) {} - virtual void InstructionSelect(SelectionDAG &SD); + virtual void InstructionSelect(); // Pass Name virtual const char *getPassName() const { @@ -103,7 +103,7 @@ private: /// InstructionSelect - This callback is invoked by /// SelectionDAGISel when it has created a SelectionDAG for us to codegen. void MipsDAGToDAGISel:: -InstructionSelect(SelectionDAG &SD) +InstructionSelect() { DEBUG(BB->dump()); // Codegen the basic block. @@ -119,7 +119,7 @@ InstructionSelect(SelectionDAG &SD) DOUT << "===== Instruction selection ends:\n"; #endif - SD.RemoveDeadNodes(); + CurDAG->RemoveDeadNodes(); } /// getGlobalBaseReg - Output the instructions required to put the |