diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2018-01-02 18:25:57 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-01-02 18:25:57 +0000 |
commit | 4aae3cb3559802faee3b5cb58d9315dcc5000bc8 (patch) | |
tree | 1283f373029f83a2ce2f95fa81a4d7ca81e6826a /gcc/optabs-query.c | |
parent | 3ea109a3479cdbbe8a47bf60b2d2d69072a1d51b (diff) | |
download | gcc-4aae3cb3559802faee3b5cb58d9315dcc5000bc8.zip gcc-4aae3cb3559802faee3b5cb58d9315dcc5000bc8.tar.gz gcc-4aae3cb3559802faee3b5cb58d9315dcc5000bc8.tar.bz2 |
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
Diffstat (limited to 'gcc/optabs-query.c')
-rw-r--r-- | gcc/optabs-query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs-query.c b/gcc/optabs-query.c index 02a583f..b8e7e31 100644 --- a/gcc/optabs-query.c +++ b/gcc/optabs-query.c @@ -369,7 +369,7 @@ qimode_for_vec_perm (machine_mode mode) zeroes; this case is not dealt with here. */ bool -can_vec_perm_p (machine_mode mode, bool variable, vec_perm_indices *sel) +can_vec_perm_p (machine_mode mode, bool variable, const vec_perm_indices *sel) { machine_mode qimode; |