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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:10e4107dfcf9fe324d0902f16411a75c596dab91

commit r15-7802-g10e4107dfcf9fe324d0902f16411a75c596dab91
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Mar 3 14:12:37 2025 +0100

    tree-optimization/119096 - bogus conditional reduction vectorization

    When we vectorize a .COND_ADD reduction and apply the single-use-def
    cycle optimization we can end up chosing the wrong else value for
    subsequent .COND_ADD.  The following rectifies this.

            PR tree-optimization/119096
            * tree-vect-loop.cc (vect_transform_reduction): Use the
            correct else value for .COND_fn.

            * gcc.dg/vect/pr119096.c: New testcase.

Reply via email to