[Bug tree-optimization/122747] Cannot fully mask a conditional reduction

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 19 11:53:08 GMT 2025


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

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

https://gcc.gnu.org/g:18a85f9107df49f191a713e191150a9e7c902b04

commit r16-5414-g18a85f9107df49f191a713e191150a9e7c902b04
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Nov 19 10:33:05 2025 +0100

    tree-optimization/122747 - fix masking of loops with conditional reduction
ops

    The following amends the earlier fix in r16-5372-gfacb92812a4ec5 to
    also cover the case we're not doing the merge to a single cycle
    but go via vectorizable_call.

            PR tree-optimization/122747
            * tree-vect-stmts.cc (vectorizable_call): Handle reduction
            operations that are already conditional.

            * gcc.target/i386/vect-epilogues-10.c: New testcase.


More information about the Gcc-bugs mailing list