[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.
H.J Lu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 31 12:17:04 PDT 2018
hjl.tools added a comment.
In https://reviews.llvm.org/D53919#1282692, @efriedma wrote:
> As far as I know, according to the ABI docs, it's impossible to return a 256-bit vector from a function if AVX is disabled.
>
> Given that we aren't rejecting the testcase, we're effectively implementing a new "no-AVX" ABI variant. That variant is not defined anywhere, so we might as well pick the fastest convention, returning the value in registers. I'm not sure why you would want to return the vector in memory instead.
Not a new "no-AVX" ABI variant. It should be pre-AVX ABI.
Repository:
rC Clang
https://reviews.llvm.org/D53919
More information about the cfe-commits
mailing list