Pass vec_perm_indices by reference
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 2 Jan 2018 18:25:57 +0000 (18:25 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 2 Jan 2018 18:25:57 +0000 (18:25 +0000)
commit4aae3cb3559802faee3b5cb58d9315dcc5000bc8
tree1283f373029f83a2ce2f95fa81a4d7ca81e6826a
parent3ea109a3479cdbbe8a47bf60b2d2d69072a1d51b
Pass vec_perm_indices by reference

This patch makes functions take vec_perm_indices by reference rather
than value, since a later patch will turn vec_perm_indices into a class
that would be more expensive to copy.

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

gcc/
* optabs-query.h (can_vec_perm_p): Take a const vec_perm_indices *.
* optabs-query.c (can_vec_perm_p): Likewise.
* fold-const.c (fold_vec_perm): Take a const vec_perm_indices &
instead of vec_perm_indices.
* tree-vectorizer.h (vect_gen_perm_mask_any): Likewise,
(vect_gen_perm_mask_checked): Likewise,
* tree-vect-stmts.c (vect_gen_perm_mask_any): Likewise,
(vect_gen_perm_mask_checked): Likewise,

From-SVN: r256090
gcc/ChangeLog
gcc/fold-const.c
gcc/optabs-query.c
gcc/optabs-query.h
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h