]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Add is_gather_scatter argument to misalignment hook.
authorRobin Dapp <rdapp@ventanamicro.com>
Wed, 2 Jul 2025 08:02:16 +0000 (10:02 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Thu, 24 Jul 2025 14:12:39 +0000 (16:12 +0200)
commitde75875d6779d7dc144aea2c5d26fb9aa2373d04
tree883f104e306f8aeb07f0c0117d9efd5b52bcc432
parentd581d84f919cd269b1fd153d9af51eb9efd10d82
vect: Add is_gather_scatter argument to misalignment hook.

This patch adds an is_gather_scatter argument to the
support_vector_misalignment hook.  All targets but riscv do not care
about alignment for gather/scatter so return true for is_gather_scatter.

gcc/ChangeLog:

* config/aarch64/aarch64.cc (aarch64_builtin_support_vector_misalignment):
Return true for gather/scatter.
* config/arm/arm.cc (arm_builtin_support_vector_misalignment):
Ditto.
* config/epiphany/epiphany.cc (epiphany_support_vector_misalignment):
Ditto.
* config/gcn/gcn.cc (gcn_vectorize_support_vector_misalignment):
Ditto.
* config/loongarch/loongarch.cc (loongarch_builtin_support_vector_misalignment):
Ditto.
* config/riscv/riscv.cc (riscv_support_vector_misalignment):
Add gather/scatter argument.
* config/rs6000/rs6000.cc (rs6000_builtin_support_vector_misalignment):
Return true for gather/scatter.
* config/s390/s390.cc (s390_support_vector_misalignment):
Ditto.
* doc/tm.texi: Add argument.
* target.def: Ditto.
* targhooks.cc (default_builtin_support_vector_misalignment):
Ditto.
* targhooks.h (default_builtin_support_vector_misalignment):
Ditto.
* tree-vect-data-refs.cc (vect_supportable_dr_alignment):
Ditto.
13 files changed:
gcc/config/aarch64/aarch64.cc
gcc/config/arm/arm.cc
gcc/config/epiphany/epiphany.cc
gcc/config/gcn/gcn.cc
gcc/config/loongarch/loongarch.cc
gcc/config/riscv/riscv.cc
gcc/config/rs6000/rs6000.cc
gcc/config/s390/s390.cc
gcc/doc/tm.texi
gcc/target.def
gcc/targhooks.cc
gcc/targhooks.h
gcc/tree-vect-data-refs.cc