r256097 - in /trunk/gcc: ChangeLog optabs-query...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Tue Jan 2 18:27:00 GMT 2018


Author: rsandifo
Date: Tue Jan  2 18:27:05 2018
New Revision: 256097

URL: https://gcc.gnu.org/viewcvs?rev=256097&root=gcc&view=rev
Log:
Use explicit encodings for simple permutes

This patch makes users of vec_perm_builders use the compressed encoding
where possible.  This means that they work with variable-length vectors.

2018-01-02  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
	* optabs.c (expand_vec_perm_var): Use an explicit encoding for
	the broadcast of the low byte.
	(expand_mult_highpart): Use an explicit encoding for the permutes.
	* optabs-query.c (can_mult_highpart_p): Likewise.
	* tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
	* tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
	(vectorizable_bswap): Likewise.
	* tree-vect-data-refs.c (vect_grouped_store_supported): Use an
	explicit encoding for the power-of-2 permutes.
	(vect_permute_store_chain): Likewise.
	(vect_grouped_load_supported): Likewise.
	(vect_permute_load_chain): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/optabs-query.c
    trunk/gcc/optabs.c
    trunk/gcc/tree-vect-data-refs.c
    trunk/gcc/tree-vect-loop.c
    trunk/gcc/tree-vect-stmts.c



More information about the Gcc-cvs mailing list