aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-15 06:07:10 +0000
committerChris Lattner <sabre@nondot.org>2005-05-15 06:07:10 +0000
commitea0354346f59269350e7af2aefcd957468ff36b0 (patch)
treee98c1cf5572b4579b64f10b77a57d789f93fd77b
parent5934de7aeac08955703357aa7df6ec0dd29432f5 (diff)
don't reserve space for tailcall arg areas. It explicitly managed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22050 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelPattern.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp
index 28534a2838..1d30608d34 100644
--- a/lib/Target/X86/X86ISelPattern.cpp
+++ b/lib/Target/X86/X86ISelPattern.cpp
@@ -3764,8 +3764,10 @@ static SDOperand GetAdjustedArgumentStores(SDOperand Chain, int Offset,
MVT::ValueType StoreVT;
switch (Chain.getOpcode()) {
case ISD::CALLSEQ_START:
- // If we found the start of the call sequence, we're done.
- return Chain;
+ // If we found the start of the call sequence, we're done. We actually
+ // strip off the CALLSEQ_START node, to avoid generating the
+ // ADJCALLSTACKDOWN marker for the tail call.
+ return Chain.getOperand(0);
case ISD::TokenFactor: {
std::vector<SDOperand> Ops;
Ops.reserve(Chain.getNumOperands());