This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 0/6] Cleanups for generic vector permutation.
- From: David Miller <davem at davemloft dot net>
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org, dje dot gcc at gmail dot com
- Date: Fri, 14 Oct 2011 00:58:07 -0400 (EDT)
- Subject: Re: [PATCH 0/6] Cleanups for generic vector permutation.
- References: <1318563805-7481-1-git-send-email-rth@redhat.com>
From: rth@redhat.com
Date: Thu, 13 Oct 2011 20:43:19 -0700
> These patches allow __builtin_shuffle to handle any vector permutation
> via optabs. It allows for a not-uncommon fallback to byte permutation
> at rtl expansion time, while leaving the tree/gimple-level permutation
> as element-based.
>
> All three targets which heretofore supported vector permutation in any
> way have been updated to support the new optabs.
>
> The next step is to convert the vectorizer to use the VEC_PERM_EXPR code
> rather than using the hook that returns builtins. Once that is done,
> it would be possible for the targets to delete the builtins. Supposing
> that they're not exposed for user-level consumption (which is the case
> for i386; the user-level interface is via inlines in a header file, which
> can be updated to use __builtin_shuffle).
Looks good Richard, I'll work on vec_init and vec_perm* patterns on
Sparc when I get a chance.