[clang] [clang] Limit alignment for emitted vectors (PR #98629)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 15 08:02:26 PDT 2024
================
@@ -133,6 +133,7 @@ struct TransferrableTargetInfo {
unsigned short SuitableAlign;
unsigned short NewAlign;
unsigned MaxVectorAlign;
----------------
Fznamznon wrote:
I did MaxVectorAlign = 2^14 in base TargetInfo,
```
if (Ty->getAs<VectorType>() &&
getContext().getTypeSize(Ty) > getTarget().getVectorAlignAlign())
return getNaturalAlignIndirect(Ty);
```
in `ABIArgInfo X86_64ABIInfo::getIndirectReturnResult` like it is checked now with `getMaxPossibleAlign`.
https://github.com/llvm/llvm-project/pull/98629
More information about the cfe-commits
mailing list