aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-18 18:46:06 +0000
committerChris Lattner <sabre@nondot.org>2005-08-18 18:46:06 +0000
commitd607c12e8e8533028a66c9f533007c6c32a64cef (patch)
tree89f494c776535d11984aa8219897ff18c637b715
parentd32b23690d9919a31ac6c56b2783efb622051e75 (diff)
After selecting the instructions for a basic block, emit the instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22869 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCISelDAGToDAG.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 8f8fa70093..1fa7f37faf 100644
--- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -58,10 +58,14 @@ namespace {
/// SelectionDAGISel when it has created a SelectionDAG for us to codegen.
virtual void InstructionSelectBasicBlock(SelectionDAG &DAG) {
DEBUG(BB->dump());
- // Codegen the basic block.
+ // Select target instructions for the DAG.
Select(DAG.getRoot());
DAG.RemoveDeadNodes();
+
DAG.viewGraph();
+
+ // Emit machine code to BB.
+ ScheduleAndEmitDAG(DAG);
}
virtual const char *getPassName() const {