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

--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Tamar Christina
<[email protected]>:

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

commit r16-9245-ga3a7c2da0508ceec0bd73994f62f9a4cb1ab3649
Author: Tamar Christina <[email protected]>
Date:   Fri Jun 12 11:56:54 2026 +0100

    vect: use .VARYING for early break IV [PR125597]

    Similar to the mask control variable, this replaces and adds the temporary
SSA
    var for early break scalar IVs with an IFN_VARYING until the replacement is
done
    when we start vectorization.

    This prevents similar issues as the mask control variable when the IV
    expressions are folded.

    gcc/ChangeLog:

            PR tree-optimization/125597
            * tree-vect-loop-manip.cc (vect_do_peeling): Create IFN_VARYING for
            early break scalar IV.
            * tree-vect-loop.cc
(vect_update_ivs_after_vectorizer_for_early_breaks):
            Replace the IFN_VARYING with actual value.

    (cherry picked from commit 46f07a7b7d4d5b391723a756e5fb7673800bac57)

Reply via email to