Add a vec_perm_indices_to_tree helper function
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 2 Jan 2018 18:26:56 +0000 (18:26 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 2 Jan 2018 18:26:56 +0000 (18:26 +0000)
commit736d0f28783f12fa042892bc186866dd5101088f
tree54c83634cd4ce7f8d3f8660188d476af4c271b1b
parente3342de49cbee48957acc749b9566eee230860be
Add a vec_perm_indices_to_tree helper function

This patch adds a function for creating a VECTOR_CST from a
vec_perm_indices, operating directly on the encoding.

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

gcc/
* vec-perm-indices.h (vec_perm_indices_to_tree): Declare.
* vec-perm-indices.c (vec_perm_indices_to_tree): New function.
* tree-ssa-forwprop.c (simplify_vector_constructor): Use it.
* tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
* tree-vect-stmts.c (vectorizable_bswap): Likewise.
(vect_gen_perm_mask_any): Likewise.

From-SVN: r256096
gcc/ChangeLog
gcc/tree-ssa-forwprop.c
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c
gcc/vec-perm-indices.c
gcc/vec-perm-indices.h