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

--- Comment #3 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:d0a206abc6cbf0e992bf82bbb3584686eae05d34

commit r11-5050-gd0a206abc6cbf0e992bf82bbb3584686eae05d34
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Nov 16 09:28:03 2020 +0100

    tree-optimization/97838 - fix SLP leaf detection

    This properly handles reduction PHI nodes with unrepresented
    initial value as leaf in the SLP graph.

    2020-11-16  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/97838
            * tree-vect-slp.c (vect_slp_build_vertices): Properly handle
            not backwards reachable cycles.
            (vect_optimize_slp): Check a node is leaf before marking it
            visited.

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

Reply via email to