]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/123316 - avoid ICE due to lack of PHI patterns
authorRichard Biener <rguenther@suse.de>
Tue, 6 Jan 2026 13:10:38 +0000 (14:10 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 7 Jan 2026 08:18:28 +0000 (09:18 +0100)
commit515dba569d138d84e8a5f7ea71d38480732ee899
tree9a0a3279470e34b676a529451d24cc7b0638072a
parent026c00babbe16d5a8525d2e59066d381615705c4
tree-optimization/123316 - avoid ICE due to lack of PHI patterns

With bools we can end up with mixed vector types in PHI nodes due
to PHIs not having pattern stmts.  Avoid this when analyzing
a nested cycle, similar to how we already to when analyzing BB
vectorization PHIs.

PR tree-optimization/123316
* tree-vect-loop.cc (vectorizable_reduction): Detect missing
PHI patterns for bools.

* gcc.dg/vect/vect-pr123316.c: New testcase.
gcc/testsuite/gcc.dg/vect/vect-pr123316.c [new file with mode: 0644]
gcc/tree-vect-loop.cc