diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-11-30 17:32:36 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-11-30 17:32:36 +0000 |
commit | 7057b8f8c2fbb7a2112705c2962d92b8ccef7c30 (patch) | |
tree | 8639c3dded9f49f35ab43d79830f18784466c82d /gcc/fortran/check.c | |
parent | 5fee5ec362f7a243f459e6378fd49dfc89dc9fb5 (diff) | |
download | gcc-7057b8f8c2fbb7a2112705c2962d92b8ccef7c30.zip gcc-7057b8f8c2fbb7a2112705c2962d92b8ccef7c30.tar.gz gcc-7057b8f8c2fbb7a2112705c2962d92b8ccef7c30.tar.bz2 |
vect: Fix ncopies calculation for emulated gather/scatter [PR103494]
I was too eager about removing ncopies calculations in g:10833849b55.
When emulating gather/scatter, the offset ncopies can be different from
the data ncopies. This patch restores the original calculation.
gcc/
PR tree-optimization/103494
* tree-vect-stmts.c (vect_get_gather_scatter_ops): Remove ncopies
argument and calculate ncopies from gs_info->offset_vectype
where necessary.
(vectorizable_store, vectorizable_load): Update accordingly.
gcc/testsuite/
PR tree-optimization/103494
* gcc.dg/vect/pr103494.c: New test.
* g++.dg/vect/pr103494.cc: Likewise.
Diffstat (limited to 'gcc/fortran/check.c')
0 files changed, 0 insertions, 0 deletions