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/CodeGen | |
| 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/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1124f37d2e8..8cfc334c025 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -43,9 +43,10 @@ #include "llvm/Target/TargetLowering.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetOptions.h" -#include "llvm/Support/MathExtras.h" -#include "llvm/Support/Debug.h" #include "llvm/Support/Compiler.h" +#include "llvm/Support/Debug.h" +#include "llvm/Support/MathExtras.h" +#include "llvm/Support/Timer.h" #include <algorithm> using namespace llvm; @@ -5354,7 +5355,14 @@ void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) { // Third, instruction select all of the operations to machine code, adding the // code to the MachineBasicBlock. - InstructionSelectBasicBlock(DAG); + InstructionSelect(DAG); + + // Emit machine code to BB. This can change 'BB' to the last block being + // inserted into. + ScheduleAndEmitDAG(DAG); + + // Perform target specific isel post processing. + InstructionSelectPostProcessing(DAG); DOUT << "Selected machine code:\n"; DEBUG(BB->dump()); |

