[clang] [clang][AArch64] Don't round parameters to multiples of 8-byte (PR #215264)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 02:42:28 PDT 2026
================
@@ -504,6 +504,10 @@ ABIArgInfo AArch64ABIInfo::classifyArgumentType(QualType Ty, bool IsVariadicFn,
std::max(getContext().getTypeAlign(Ty),
(unsigned)getTarget().getPointerWidth(LangAS::Default));
}
+ if (Size < 64 && getDataLayout().isLittleEndian())
+ return ABIArgInfo::getDirect(
+ llvm::IntegerType::get(getVMContext(), Size));
+
----------------
eleviant wrote:
Addressed. Looks like even on Darwin, we don't need to zext/sext arguments with size >= 32 bits, do we?
https://github.com/llvm/llvm-project/pull/215264
More information about the cfe-commits
mailing list