]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fail vectorization when not using SLP and --param vect-force-slp == 1
authorRichard Biener <rguenther@suse.de>
Sun, 8 Sep 2024 09:21:19 +0000 (11:21 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 18 Sep 2024 13:40:10 +0000 (15:40 +0200)
commitde1389e24e8dc98b65bc8d40976172214ac4ecc0
treea2f0028cbcc0486bfedee0b54db2e333f8879d43
parentad5bfc2b7044ba962396de0dabcad1cd54234689
Fail vectorization when not using SLP and --param vect-force-slp == 1

The following adds --param vect-force-slp to enable the transition
to full SLP.  Full SLP is enforced during stmt analysis where it
detects failed SLP discovery and at loop analysis time where it
avoids analyzing a loop with SLP disabled.  Failure to SLP results
in vectorization to fail.

* params.opt (vect-force-slp): New param, default 0.
* doc/invoke.texi (--param vect-force-slp): Document.
* tree-vect-loop.cc (vect_analyze_loop_2): When analyzing
without SLP but --param vect-force-slp is 1 fail.
* tree-vect-stmts.cc (vect_analyze_stmt): Fail vectorization
for non-SLP stmts when --param vect-force-slp is 1.
gcc/doc/invoke.texi
gcc/params.opt
gcc/tree-vect-loop.cc
gcc/tree-vect-stmts.cc