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

--- Comment #9 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:76c09f2af9d8ab9c760d860626f069d12d86f0a9

commit r11-5901-g76c09f2af9d8ab9c760d860626f069d12d86f0a9
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Dec 10 11:12:53 2020 +0100

    tree-optimization/98211 - fix bogus vectorization of conversion

    Pattern recog incompletely handles some bool cases but we shouldn't
    miscompile as a result but not vectorize.  Unfortunately
    vectorizable_assignment lets invalid conversions (that
    vectorizable_conversion rejects) slip through.  The following
    rectifies that.

    2020-12-10  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/98211
            * tree-vect-stmts.c (vectorizable_assignment): Disallow
            invalid conversions to bool vector types.

            * gcc.dg/pr98211.c: New testcase.

Reply via email to