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

--- Comment #6 from CVS 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:ee01694151edc7e8aef84dc3c484469e2ae443a0

commit r12-5803-gee01694151edc7e8aef84dc3c484469e2ae443a0
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Dec 6 11:43:28 2021 +0100

    tree-optimization/103544 - SLP reduction chain as SLP reduction issue

    When SLP reduction chain vectorization support added handling of
    an outer conversion in the chain picking a failed reduction up
    as SLP reduction that broke the invariant that the whole reduction
    was forward reachable.  The following plugs that hole noting
    a future enhancement possibility.

    2021-12-06  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/103544
            * tree-vect-slp.c (vect_analyze_slp): Only add a SLP reduction
            opportunity if the stmt in question is the reduction root.
            (dot_slp_tree): Add missing check for NULL child.

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

Reply via email to