[cfe-commits] r130444 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
Stuart Hastings
stuart at apple.com
Thu Apr 28 14:35:59 PDT 2011
Author: stuart
Date: Thu Apr 28 16:35:59 2011
New Revision: 130444
URL: http://llvm.org/viewvc/llvm-project?rev=130444&view=rev
Log:
Raise ARM byval minimum size from 32 to 64, addressing a performance
regression in mason. rdar://problem/7662569
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=130444&r1=130443&r2=130444&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Thu Apr 28 16:35:59 2011
@@ -2344,7 +2344,7 @@
// FIXME: This doesn't handle alignment > 64 bits.
const llvm::Type* ElemTy;
unsigned SizeRegs;
- if (getContext().getTypeSizeInChars(Ty) <= CharUnits::fromQuantity(32)) {
+ if (getContext().getTypeSizeInChars(Ty) <= CharUnits::fromQuantity(64)) {
ElemTy = llvm::Type::getInt32Ty(getVMContext());
SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32;
} else if (getABIKind() == ARMABIInfo::APCS) {
More information about the cfe-commits
mailing list