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

--- 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:5b41d673ad96dd2f9a7dec3877d0381320ccadb1

commit r11-4603-g5b41d673ad96dd2f9a7dec3877d0381320ccadb1
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Nov 2 09:38:09 2020 +0100

    tree-optimization/97558 - avoid SLP analyzing irrelevant stmts

    This avoids analyzing reductions that are not relevant (thus dead)
    which eventually will lead into crashes because the participating
    stmts meta is not analyzed.  For this to work the patch also
    properly removes reduction groups that are not uniformly recognized
    as patterns.

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

            PR tree-optimization/97558
            * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns):
            Check for any mismatch in pattern vs. non-pattern and dissolve
            the group if there is one.
            * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
            analyzing not relevant reductions.
            (vect_analyze_slp): Avoid analyzing not relevant reduction
            groups.

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

Reply via email to