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

--- Comment #5 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:cea34ac07e3bd74086f854dd43afb29b4940d8de

commit r16-5888-gcea34ac07e3bd74086f854dd43afb29b4940d8de
Author: Richard Biener <[email protected]>
Date:   Sun Nov 23 14:01:03 2025 +0100

    Select both inbranch and notinbranch clone during SIMD call analysis

    The following recors both a possibly notinbranch and an inbranch
    SIMD clone during analysis so that we can properly handle the
    late decision on loop masking.  Recording of linear-clause data
    from analysis is extended to cover linear-clause arguments from
    both clones.

    This also fixes AVX512 masked loop code generation in line with
    the previous fixes.

            PR tree-optimization/122776
            * tree-vectorizer.h (vect_simd_clone_data::clone,
            vect_simd_clone_data::clone_inbranch): New fields for
            the two selected clones.
            * tree-vect-stmts.cc (vectorizable_simd_clone_call): Record
            both a possibly notinbranch and a inbranch clone.  Delay
            the choice between both to code generation based on
            LOOP_VINFO_FULLY_MASKED_P.

            * gcc.dg/vect/vect-simd-clone-24.c: New testcase.
            * gcc.dg/gomp/pr110485.c: Adjust.

Reply via email to