diff options
author | Manman Ren <mren@apple.com> | 2012-08-13 21:23:55 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-08-13 21:23:55 +0000 |
commit | 634b3d26969f139a25b223074567ba5ab7ba7dd9 (patch) | |
tree | 4862cfe20d81e65ddfe7b67a717ea4f0b919c2d5 /lib/CodeGen/TargetInfo.cpp | |
parent | 10caec2600089449b58c065d56fc449d095b4536 (diff) |
ARM: enable struct byval for AAPCS-VFP.
rdar://9877866
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 2cd239c81a..9c23ed9871 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -2757,13 +2757,10 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty) const { } } - // Turn on byval for APCS and AAPCS. - // FIXME: turn on byval for AAPCS_VFP for performance. - if (getABIKind() == ARMABIInfo::APCS || getABIKind() == ARMABIInfo::AAPCS) { - if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64) || - getContext().getTypeAlign(Ty) > 64) { - return ABIArgInfo::getIndirect(0, /*ByVal=*/true); - } + // Support byval for ARM. + if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64) || + getContext().getTypeAlign(Ty) > 64) { + return ABIArgInfo::getIndirect(0, /*ByVal=*/true); } // Otherwise, pass by coercing to a structure of the appropriate size. |