]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117720 - check alignment for VMAT_STRIDED_SLP
authorRichard Biener <rguenther@suse.de>
Thu, 21 Nov 2024 08:14:53 +0000 (09:14 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 21 Nov 2024 09:04:55 +0000 (10:04 +0100)
commit7e9b0d90d363311caaa5a5e6edbb5088afe0308f
treed26a4c0c613685b9ee4de8cd32a1d0d33a04ada5
parentab8d3606bbe67bce8900931e8b2a03d24c2b8beb
tree-optimization/117720 - check alignment for VMAT_STRIDED_SLP

While vectorizable_store was already checking alignment requirement
of the stores and fall back to elementwise accesses if not honored
the vectorizable_load path wasn't doing this.  After the previous
change to disregard alignment checking for VMAT_STRIDED_SLP in
get_group_load_store_type this now tripped on power.

PR tree-optimization/117720
* tree-vect-stmts.cc (vectorizable_load): For VMAT_STRIDED_SLP
verify the choosen load type is OK with regard to alignment.
gcc/tree-vect-stmts.cc