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

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:5ae6df447e12cbdfca0c65fa6341e161046df6b7

commit r17-6686-g5ae6df447e12cbdfca0c65fa6341e161046df6b7
Author: Richard Biener <[email protected]>
Date:   Tue Nov 24 18:37:08 2026 +0100

    tree-optimization/128923 - improve BB SLP discovery for to-be-split graphs

    The following extends what was done in r17-4410-gbca59752267990,
    delaying soft-fail of SLP discovery until we have to to avoid
    succeding for leafs.  This allows to discover better split-points
    for groups like in the case for PR128923.

    I have opted to avoid operand swapping overhead since we cannot
    currently distinguish a soft-fail from a real fail.  Ideally
    soft-fail would be only enforced at outermost level but that's
    a much larger change.

            PR tree-optimization/128923
            * tree-vect-slp.cc (force_split_matches): Clear leading
            entries in matches[].
            (vect_build_slp_tree_2): Delay soft-failing
            to leaf nodes.  Avoid swapping operands on to-be soft-failed
            nodes and never build those from scalars.

            * g++.dg/vect/pr128923.cc: New testcase.
            * gcc.dg/vect/bb-slp-pr128923-2.c: Likewise.
            * gcc.dg/vect/bb-slp-pr128923-3.c: Likewise.

Reply via email to