[Bug tree-optimization/96466] [11 Regression] ICE: in gimple_expand_vec_cond_expr, at gimple-isel.cc:122 with -Og -finline-functions-called-once -fno-tree-ccp

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 23 13:11:21 GMT 2020


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

--- Comment #10 from CVS 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:bc909324bda71543add2229adfa59d8daff5f0db

commit r11-3394-gbc909324bda71543add2229adfa59d8daff5f0db
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Sep 23 14:20:44 2020 +0200

    middle-end/96466 - fix VEC_COND isel/expansion issue

    We need to avoid forcing BLKmode for truth vectors, instead do as
    other code and use VOIDmode so layout_type can pick a suitable and
    consistent mode.  RTL expansion of vect_cond_mask also needs to deal
    with CONST_INT operands which means passing the mode explicitely.

    2020-09-23  Richard Biener  <rguenther@suse.de>

            PR middle-end/96466
            * internal-fn.c (expand_vect_cond_mask_optab_fn): Use
            appropriate mode for force_reg.
            * tree.c (build_truth_vector_type_for): Pass VOIDmode to
            make_vector_type.

            * gcc.dg/pr96466.c: New testcase.


More information about the Gcc-bugs mailing list