]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/122419 - reduction chain with conversion as op
authorRichard Biener <rguenther@suse.de>
Mon, 27 Oct 2025 10:31:32 +0000 (11:31 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 27 Oct 2025 12:21:39 +0000 (13:21 +0100)
commit187bccedfc454304f7e35697baa5337c59fa2a58
tree9fb95f6df7bac5696275ea2a4a9938c9182d6ee0
parentff732017653dfe283a8cda54cbea0a44cb76d314
tree-optimization/122419 - reduction chain with conversion as op

The following deals with reduction detection handling a non-noop
conversion as reduction operation and makes the reduction chain
chain re-discovery handle this situation the same.

PR tree-optimization/122419
* tree-vect-slp.cc (vect_analyze_slp_reduc_chain): Only
skip noop conversions.

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