After selecting the instructions for a basic block, emit the instructions
authorChris Lattner <sabre@nondot.org>
Thu, 18 Aug 2005 18:46:06 +0000 (18:46 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Aug 2005 18:46:06 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22869 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelDAGToDAG.cpp

index 8f8fa70093b8ea6c0770085cb106b4fa40335132..1fa7f37faf3949f5e7131f626743f8a40520f3fd 100644 (file)
@@ -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 {