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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Robin Dapp <[email protected]>:

https://gcc.gnu.org/g:7a4e8f7bfbf2ef9afa47a8452d5b79a9eac86fc8

commit r17-6851-g7a4e8f7bfbf2ef9afa47a8452d5b79a9eac86fc8
Author: Robin Dapp <[email protected]>
Date:   Fri Nov 27 17:55:47 2026 +0100

    vect: Use niterm1 for bound assumption [PR129100].

    This patch fixes an "off by one" in the bound assumption build.
    We need to use
     niterm1 <= bound_min
    instead of
     niter <= bound_min
    because the former doesn't overflow.

            PR tree-optimization/129100

    gcc/ChangeLog:

            * tree-vect-loop.cc (vect_build_assumptions): Use niterm1.

    gcc/testsuite/ChangeLog:

            * gcc.dg/vect/pr129100.c: New test.

Reply via email to