don't reserve space for tailcall arg areas. It explicitly managed.

llvm-svn: 22050
This commit is contained in:
Chris Lattner 2005-05-15 06:07:10 +00:00
parent ea77685e20
commit 1a61fa460f
1 changed files with 4 additions and 2 deletions

View File

@ -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());