]> granicus.if.org Git - clang/commitdiff
Raise ARM byval minimum size from 32 to 64, addressing a performance
authorStuart Hastings <stuart@apple.com>
Thu, 28 Apr 2011 21:35:59 +0000 (21:35 +0000)
committerStuart Hastings <stuart@apple.com>
Thu, 28 Apr 2011 21:35:59 +0000 (21:35 +0000)
regression in mason.  rdar://problem/7662569

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130444 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index aa48cb2eebe91bf78fa51166dae1138e8e923a3e..bc2472cebbeb8106c0c68877ea9c39e449e42c5c 100644 (file)
@@ -2344,7 +2344,7 @@ ABIArgInfo ARMABIInfo::classifyArgumentType(QualType Ty) const {
   // 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) {