projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75c2b20
)
Enable tail call optimization in the presence of a byval (x86-32 and x86-64).
author
Chad Rosier
<mcrosier@apple.com>
Sat, 25 Jun 2011 02:04:56 +0000
(
02:04
+0000)
committer
Chad Rosier
<mcrosier@apple.com>
Sat, 25 Jun 2011 02:04:56 +0000
(
02:04
+0000)
<rdar://problem/
9483883
>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133858
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index 6c606be5912947b257d0209e33f8b9d0cfbbde5c..bab15e62a27daed4955addbb330d45aed6d4030d 100644
(file)
--- a/
lib/Target/X86/X86ISelLowering.cpp
+++ b/
lib/Target/X86/X86ISelLowering.cpp
@@
-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;