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

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

https://gcc.gnu.org/g:387ecb88e60fd276e84b8952e1c2f37ed911c3fa

commit r16-9856-g387ecb88e60fd276e84b8952e1c2f37ed911c3fa
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.

    (cherry picked from commit 0a970b2702183d290df044858fd4df13ef698924)
  • [Bug tree-optimization/127588] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to