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

--- Comment #3 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:0a970b2702183d290df044858fd4df13ef698924

commit r17-4648-g0a970b2702183d290df044858fd4df13ef698924
Author: Richard Biener <[email protected]>
Date:   Fri Sep 25 09:36:09 2026 +0200

    tree-optimization/127588 - avoid UB in epilog IV init computation

    The following avoids UB when computing the start value of the epilog
    IV value which we compute as init + step * vect-niters where
    the step * vect-niters computation can overflow.

            PR tree-optimization/127588
            * tree-vect-loop-manip.cc (vect_update_ivs_after_vectorizer):
            Use an unsigned type to compute the epilog start value.

            * gcc.dg/vect/vect-iv-15.c: New testcase.

Reply via email to