summaryrefslogtreecommitdiff
path: root/gcc/config/spu
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-10-17 19:35:54 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-10-17 17:35:54 +0000
commitcc9fe6bbd78a0b1740c5c1c5713d36e3da6e7165 (patch)
treee78cd4c746e37e3704a970e517a94b3df6a8bdee /gcc/config/spu
parent7061821d4aa300b600f689cadb994d7658600414 (diff)
downloadgcc-cc9fe6bbd78a0b1740c5c1c5713d36e3da6e7165.tar.gz
target.h (enum vect_cost_for_stmt): Add vec_gather_load and vec_scatter_store
* target.h (enum vect_cost_for_stmt): Add vec_gather_load and vec_scatter_store * tree-vect-stmts.c (record_stmt_cost): Make difference between normal and scatter/gather ops. * aarch64/aarch64.c (aarch64_builtin_vectorization_cost): Add vec_gather_load and vec_scatter_store. * arm/arm.c (arm_builtin_vectorization_cost): Likewise. * powerpcspe/powerpcspe.c (rs6000_builtin_vectorization_cost): Likewise. * rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Likewise. * s390/s390.c (s390_builtin_vectorization_cost): Likewise. * spu/spu.c (spu_builtin_vectorization_cost): Likewise. From-SVN: r253823
Diffstat (limited to 'gcc/config/spu')
-rw-r--r--gcc/config/spu/spu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c
index b9af9a969f7..eda7fcaaeb9 100644
--- a/gcc/config/spu/spu.c
+++ b/gcc/config/spu/spu.c
@@ -6640,6 +6640,8 @@ spu_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
return 2;
case unaligned_load:
+ case vector_gather_load:
+ case vector_scatter_store:
return 2;
case cond_branch_taken: