[clang] [clang] Limit alignment for emitted vectors (PR #98629)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 16 07:15:28 PDT 2024


================
@@ -133,6 +133,7 @@ struct TransferrableTargetInfo {
   unsigned short SuitableAlign;
   unsigned short NewAlign;
   unsigned MaxVectorAlign;
----------------
phoebewang wrote:

That makes sense. Passing/returning vector larger than target capacity (e.g. <4 x i64> without AVX) is ABI undefined behavior. The sret change matches with GCC, but may result in compatibility for Clang. Maybe we won't care it much.

https://github.com/llvm/llvm-project/pull/98629


More information about the cfe-commits mailing list