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

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

https://gcc.gnu.org/g:03844a2a15a85015506c0f187d0e9d526900cc2c

commit r14-10392-g03844a2a15a85015506c0f187d0e9d526900cc2c
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Jun 27 11:26:08 2024 +0200

    tree-optimization/115669 - fix SLP reduction association

    The following avoids associating a reduction path as that might
    get STMT_VINFO_REDUC_IDX out-of-sync with the SLP operand order.
    This is a latent issue with SLP reductions but now easily exposed
    as we're doing single-lane SLP reductions.

    When we achieved SLP only we can move and update this meta-data.

            PR tree-optimization/115669
            * tree-vect-slp.cc (vect_build_slp_tree_2): Do not reassociate
            chains that participate in a reduction.

            * gcc.dg/vect/pr115669.c: New testcase.

    (cherry picked from commit 7886830bb45c4f5dca0496d4deae9a45204d78f5)

Reply via email to