]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116573 - .SELECT_VL for SLP
authorRichard Biener <rguenther@suse.de>
Tue, 17 Sep 2024 09:20:10 +0000 (11:20 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 19 Sep 2024 11:28:16 +0000 (13:28 +0200)
commit5e3a4a01785e2d5135528a07bb8116af9c55ddf8
tree7da047a3689eb26bbeb02e17cc8c5b67d74ab2b3
parentde915fbe3cb1ce7be35dce7d6bc8d04dc7125e61
tree-optimization/116573 - .SELECT_VL for SLP

The following restores the use of .SELECT_VL for testcases where it
is safe to use even when using SLP.  I've for now restricted it
to single-lane SLP plus optimistically allow store-lane nodes
and assume single-lane roots are not widened but at most to
load-lane who should be fine.

PR tree-optimization/116573
* tree-vect-loop.cc (vect_analyze_loop_2): Allow .SELECV_VL
for SLP but disable it when there's multi-lane instances.
* tree-vect-stmts.cc (vectorizable_store): Only compute the
ptr increment when generating code.
(vectorizable_load): Likewise.
gcc/tree-vect-loop.cc
gcc/tree-vect-stmts.cc