[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri May 13 00:33:46 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.54 -> 1.55
---
Log message:

Emit function entry code after lowering hte arguments.


---
Diffs of the changes:  (+2 -2)

 SelectionDAGISel.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.54 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.55
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.54	Fri May 13 02:23:21 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Fri May 13 02:33:32 2005
@@ -932,8 +932,6 @@
 
   FunctionLoweringInfo FuncInfo(TLI, Fn, MF);
 
-  EmitFunctionEntryCode(Fn, MF);
-
   for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)
     SelectBasicBlock(I, MF, FuncInfo);
 
@@ -1012,6 +1010,8 @@
           }
         }
     }
+
+    EmitFunctionEntryCode(F, SDL.DAG.getMachineFunction());
   }
 
   // See if there are any block-local arguments that need to be emitted in this






More information about the llvm-commits mailing list