[llvm] [LLVM][SVE] Honour calling convention when using SVE for fixed length vectors. (PR #70847)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 06:41:05 PST 2023


paulwalker-arm wrote:

> This seems to mark scalar variables as being passed in gpr registers, where as they should be the first element in a wider vector. See AArch64TargetLowering::getPreferredVectorAction for where it is overridden.

Thanks for the info.  This comes from the base version of getVectorTypeBreakdown.  However, this gets bypassed for simple VT so it looks like I'll need special handing for scalar vectors as well.

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


More information about the llvm-commits mailing list