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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> ---
commit b5ffe35f12e15e29b508eb937251d067febe18fe (origin/master, origin/HEAD)
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