]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not rely on non-SLP analysis for SLP outer loop vectorization
authorRichard Biener <rguenther@suse.de>
Thu, 30 Jan 2025 13:52:14 +0000 (14:52 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 31 Jan 2025 08:11:04 +0000 (09:11 +0100)
commit9e3ceed8d50912e271e84389ed80aeea47184e59
treee5de8789df7ca14f12cdbaff35f2f579c1f910b9
parentc8cc686377f63f39c188661d6283637188046b48
Do not rely on non-SLP analysis for SLP outer loop vectorization

We end up relying on non-SLP analysis of the inner loop LC PHI to
set the vectorizationb method for SLP since vectorizable_reduction
claims responsibility.  The following fixes this.

* tree-vect-loop.cc (vect_analyze_loop_operations): Only
call vectorizable_lc_phi when not PURE_SLP.
(vectorizable_reduction): Do not claim having handled
the inner loop LC PHI for outer loop vectorization.
gcc/tree-vect-loop.cc