https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121592

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:05284f73cff1685e2513b415e8da644193acf8cd

commit r16-3282-g05284f73cff1685e2513b415e8da644193acf8cd
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Aug 19 12:31:53 2025 +0200

    tree-optimization/121592 - failed reduction SLP discovery

    The testcase in the PR shows that when we have a reduction chain
    with a wrapped conversion we fail to properly fall back to a
    regular reduction, resulting in wrong-code.  The following fixes
    this by failing discovery.  The testcase has other issues, so
    I'm not including it here.

            PR tree-optimization/121592
            * tree-vect-slp.cc (vect_analyze_slp): When SLP reduction chain
            discovery fails, fail overall when the tail of the chain
            isn't also the entry for the non-SLP reduction.

Reply via email to