diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-15 06:07:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-15 06:07:10 +0000 |
commit | 1a61fa460f4dcd3effb0e6d6d7caad68d186ae39 (patch) | |
tree | 83a7c8a65d7e7636e53730a6b3ed28da7ce98ad5 | |
parent | ea77685e2027fb587b7704288dcfad48c4634795 (diff) | |
download | llvm-1a61fa460f4dcd3effb0e6d6d7caad68d186ae39.zip llvm-1a61fa460f4dcd3effb0e6d6d7caad68d186ae39.tar.gz llvm-1a61fa460f4dcd3effb0e6d6d7caad68d186ae39.tar.bz2 |
don't reserve space for tailcall arg areas. It explicitly managed.
llvm-svn: 22050
-rw-r--r-- | llvm/lib/Target/X86/X86ISelPattern.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelPattern.cpp b/llvm/lib/Target/X86/X86ISelPattern.cpp index 28534a2..1d30608 100644 --- a/llvm/lib/Target/X86/X86ISelPattern.cpp +++ b/llvm/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()); |