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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:1592b74350a0311e4c95a0192ea9c943847e7bc0

commit r11-7034-g1592b74350a0311e4c95a0192ea9c943847e7bc0
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Feb 2 10:32:23 2021 +0100

    tree-vect-patterns: Don't create over widening patterns for stmts used in
reductions [PR98848]

    As discussed in the PR, the reduction code isn't able to cope with type
    promotions/demotions in the reduction computation, so if we recognize an
    over-widening pattern that has vect_reduction_def type, we most likely make
    it non-vectorizable.

    2021-02-02  Jakub Jelinek  <ja...@redhat.com>

            PR tree-optimization/98848
            * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
            STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.

            * gcc.dg/vect/pr98848.c: New test.
            * gcc.dg/vect/pr92205.c: Remove xfail.

Reply via email to