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

--- Comment #2 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:b24bee5c07afb8c90c02597527871a44b00c4fd5

commit r17-5178-gb24bee5c07afb8c90c02597527871a44b00c4fd5
Author: Richard Biener <[email protected]>
Date:   Tue Oct 13 19:51:01 2026 +0200

    tree-optimization/127877 - wrong code with non-linear induction
vectorization

    When we validate the shift amount for a non-linear shift induction
    we only consider nunits shift count updates rather than VF ones.

            PR tree-optimization/127877
            * tree-vect-loop.cc (vectorizable_nonlinear_induction): Fix
            shift count check.

            * gcc.dg/vect/vect-pr127877.c: New testcase.

Reply via email to