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

--- Comment #4 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:edeb5b8258382a58e1ce8e1e79e61386250d42b2

commit r16-3526-gedeb5b8258382a58e1ce8e1e79e61386250d42b2
Author: Richard Biener <[email protected]>
Date:   Tue Sep 2 10:16:28 2025 +0200

    tree-optimization/121753 - ICE with pattern breaking reduction constraints

    The recent change to vect_synth_mult_by_constant missed to handle
    the synth_shift_p case for alg_shift, so we still changed c * 4
    to c + c + c + c.  The following also amends alg_add_t2_m, alg_sub_t2_m,
    alg_add_factor and alg_sub_factor appropriately.

            PR tree-optimization/121753
            * tree-vect-patterns.cc (vect_synth_mult_by_constant): Properly
            bail when synth_shift_p and an alg_shift use.  Handle other
            problematic cases.

Reply via email to