]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/123221 - ICE with conversion reduction
authorRichard Biener <rguenther@suse.de>
Tue, 6 Jan 2026 12:25:10 +0000 (13:25 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 7 Jan 2026 08:18:28 +0000 (09:18 +0100)
commita74a0db75acd5118d8fd89e0f0fc4f2cd55e9317
tree9225d6925e625e9fac9b432ff2aa8660b717ce2a
parent515dba569d138d84e8a5f7ea71d38480732ee899
tree-optimization/123221 - ICE with conversion reduction

The following avoids ICEing with a reduction only consisting of
noop-conversions.

PR tree-optimization/123221
* tree-vect-loop.cc (vectorizable_reduction): When we did not
find the non-conversion reduction operation, bail.

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