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

--- Comment #6 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:82a865f3a7f078435ffbd05d415a082d0391286e

commit r16-4280-g82a865f3a7f078435ffbd05d415a082d0391286e
Author: Richard Biener <[email protected]>
Date:   Tue Oct 7 14:31:18 2025 +0200

    tree-optimization/105490 - improve COND_EXPR bool pattern

    We miss to add a mask conversion from the mask producer to the
    appropriate mask for the condition operation.  The following moves
    required helpers and adds the missing part of the pattern.  That's
    required both for the case we have different mask element sizes
    and for the case we have a different number of elements because
    cond expression vectorization doesn't handle the mask having
    different nunits than the data vector.

            PR tree-optimization/105490
            * tree-vect-patterns.cc (build_mask_conversion): Move earlier.
            (vect_convert_mask_for_vectype): Likewise.
            (vect_recog_bool_pattern): Remove redundant truth type
            construction.  Add missing possibly required mask conversion.

            * gcc.dg/vect/vect-cond-14.c: New testcase.

Reply via email to