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

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:b5ffe35f12e15e29b508eb937251d067febe18fe

commit r16-5644-gb5ffe35f12e15e29b508eb937251d067febe18fe
Author: Richard Biener <[email protected]>
Date:   Thu Nov 27 10:04:19 2025 +0100

    tree-optimization/122885 - avoid re-using accumulator for some bool vectors

    When boolean vectors do not use vector integer modes we are not
    set up to produce the partial epilog in a correctly typed way,
    so avoid this situation.  For the integer mode case we are able
    to pun things correctly, so keep that working.

            PR tree-optimization/122885
            * tree-vect-loop.cc (vect_find_reusable_accumulator): Reject
            mask vectors which do not use integer vector modes.
            (vect_create_partial_epilog): Assert the same.

            * gcc.dg/torture/pr122873.c: New testcase.

Reply via email to