]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/122364 - reduction chain with conversion
authorRichard Biener <rguenther@suse.de>
Tue, 21 Oct 2025 13:23:18 +0000 (15:23 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 22 Oct 2025 09:12:03 +0000 (11:12 +0200)
commit73b6879afdf8cbc58f1a89cc79bd69737f87913c
treee4e4bafe38d2b21fbf5dc75b9e9c1816965e3580
parent065b4476c8611549a07cae58786b844ae5763eaf
tree-optimization/122364 - reduction chain with conversion

The following handles detecting of a reduction chain wrapped in a
conversion.  This does not yet try to combine operands with different
signedness, but we should now handle signed integer accumulation
to both a signed and unsigned accumulator fine.

PR tree-optimization/122364
* tree-vect-slp.cc (vect_analyze_slp_reduc_chain): Re-try
linearization on a conversion source.

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