aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-13 07:33:32 +0000
committerChris Lattner <sabre@nondot.org>2005-05-13 07:33:32 +0000
commit405ef9e28d955c1b107c27bedfd4be8b9165af01 (patch)
tree4b7e285bfdd0587d468bc98b7333bee66ff94e86 /lib/CodeGen
parent3aa7832c821c19a57aaf6ce87f16d8b49931e644 (diff)
Emit function entry code after lowering hte arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index bda0fcbb2b..70ba42e03a 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -932,8 +932,6 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) {
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 @@ LowerArguments(BasicBlock *BB, SelectionDAGLowering &SDL,
}
}
}
+
+ EmitFunctionEntryCode(F, SDL.DAG.getMachineFunction());
}
// See if there are any block-local arguments that need to be emitted in this