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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:8cb0127dfd3d01d4549f3139b087d1a5966844ee

commit r15-9787-g8cb0127dfd3d01d4549f3139b087d1a5966844ee
Author: Richard Biener <rguent...@suse.de>
Date:   Fri May 30 14:11:47 2025 +0200

    tree-optimization/120357 - ICE with early break vectorization

    When doing early break vectorization of a loop with a conditional
    reduction the epilog creation code is confused as to before which exit
    to insert the conditional reduction induction IV update.  The
    following make sure this is done before the main IV exit.

            PR tree-optimization/120357
            * tree-vect-loop.cc (vect_create_epilog_for_reduction): Create
            the conditional reduction induction IV increment before the
            main IV exit.

            * gcc.dg/vect/vect-early-break_136-pr120357.c: New testcase.

    (cherry picked from commit dce4da51ab66c3abb84448326910cd42f6fe2499)

Reply via email to