Make more use of rtx_vector_builder
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 2 Jan 2018 18:28:06 +0000 (18:28 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 2 Jan 2018 18:28:06 +0000 (18:28 +0000)
commit3d8ca53dd9b4c42b07ef974f92c3c4553cce3a79
treea24895a3e9e27d5d1711474f8246f92559d37b64
parent3877c560656f4961cc50952c3bba3c40812c36c3
Make more use of rtx_vector_builder

This patch makes various bits of CONST_VECTOR-building code use
rtx_vector_builder, operating directly on a specific encoding.

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

gcc/
* expr.c: Include rtx-vector-builder.h.
(const_vector_mask_from_tree): Use rtx_vector_builder and operate
directly on the tree encoding.
(const_vector_from_tree): Likewise.
* optabs.c: Include rtx-vector-builder.h.
(expand_vec_perm_var): Use rtx_vector_builder and create a repeating
sequence of "u" values.
* vec-perm-indices.c: Include rtx-vector-builder.h.
(vec_perm_indices_to_rtx): Use rtx_vector_builder and operate
directly on the vec_perm_indices encoding.

From-SVN: r256103
gcc/ChangeLog
gcc/expr.c
gcc/optabs.c
gcc/vec-perm-indices.c