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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:ffb092784fc2513c2944253efc57c27de068c8b9

commit r11-10737-gffb092784fc2513c2944253efc57c27de068c8b9
Author: Richard Biener <rguent...@suse.de>
Date:   Wed May 3 11:06:28 2023 +0200

    tree-optimization/109473 - fix type mismatch in reduction vectorization

    When backporting the PR109473 fix I failed to realize its testcase
    will run into an unrelated similar bug.  With GCC 12 the code has
    seen substantial refactoring so the following applies a local fix
    to make sure we are using the correct types when building initial
    values for reductions.

            PR tree-optimization/109473
            * tree-vect-loop.c (get_initial_def_for_reduction):
            Convert the scalar values to the vector component type
            before using it to build the vector for the initial value.

Reply via email to