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

--- Comment #5 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:87a0b607e40f8122c7fc45d496ef48799fe11550

commit r12-2727-g87a0b607e40f8122c7fc45d496ef48799fe11550
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Aug 4 11:42:41 2021 +0200

    tree-optimization/101756 - avoid vectorizing boolean MAX reductions

    The following avoids vectorizing MIN/MAX reductions on bools which,
    when ending up as vector(2) <signed-boolean:64> would need to be
    adjusted because of the sign change.  The fix instead avoids any
    reduction vectorization where the result isn't compatible
    to the original scalar type since we don't compensate for that
    either.

    2021-08-04  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/101756
            * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
            the result of the reduction epilogue is compatible to the original
            scalar result.

            * gcc.dg/vect/bb-slp-pr101756.c: New testcase.

Reply via email to