[Bug tree-optimization/122364] Missed reduction chain vectorization
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 22 09:12:24 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122364
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:73b6879afdf8cbc58f1a89cc79bd69737f87913c
commit r16-4556-g73b6879afdf8cbc58f1a89cc79bd69737f87913c
Author: Richard Biener <rguenther@suse.de>
Date: Tue Oct 21 15:23:18 2025 +0200
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.
More information about the Gcc-bugs
mailing list