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

--- Comment #10 from GCC 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:dce4da51ab66c3abb84448326910cd42f6fe2499

commit r16-1027-gdce4da51ab66c3abb84448326910cd42f6fe2499
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.

Reply via email to