mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
Enable tail call optimization in the presence of a byval (x86-32 and x86-64).
<rdar://problem/9483883> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
75c2b2028b
commit
df78fcd2d6
@ -2505,6 +2505,10 @@ bool MatchingStackOffset(SDValue Arg, unsigned Offset, ISD::ArgFlagsTy Flags,
|
||||
if (!FINode)
|
||||
return false;
|
||||
FI = FINode->getIndex();
|
||||
} else if (Arg.getOpcode() == ISD::FrameIndex && Flags.isByVal()) {
|
||||
FrameIndexSDNode *FINode = dyn_cast<FrameIndexSDNode>(Arg);
|
||||
FI = FINode->getIndex();
|
||||
Bytes = Flags.getByValSize();
|
||||
} else
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user