]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116818 - try VMAT_GATHER_SCATTER also for SLP
authorRichard Biener <rguenther@suse.de>
Mon, 23 Sep 2024 13:24:01 +0000 (15:24 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 27 Sep 2024 07:20:24 +0000 (09:20 +0200)
commitb1c7095a1da11d2543222d98243d10f9cc9823ce
tree08efd7d0227807613d047b8243c6f6bd9664a6e4
parent3db9e99165968af8479468cd373990da2f116e3b
tree-optimization/116818 - try VMAT_GATHER_SCATTER also for SLP

When not doing SLP and we end up with VMAT_ELEMENTWISE we consider
using strided loads, aka VMAT_GATHER_SCATTER.  The following moves
this logic down to also apply to SLP where we now can end up
using VMAT_ELEMENTWISE as well.

PR tree-optimization/116818
* tree-vect-stmts.cc (get_group_load_store_type): Consider
VMAT_GATHER_SCATTER instead of VMAT_ELEMENTWISE also for SLP.
(vectorizable_load): For single-lane VMAT_GATHER_SCATTER also
ignore permutations.
gcc/tree-vect-stmts.cc