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

            Bug ID: 97480
           Summary: ice in vect_get_and_check_slp_defs, at
                    tree-vect-slp.c:538
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C code:

typedef struct {
  int a;
  int b;
} c;
int d;
c e;
unsigned int f;
void g() {
  e.a = f != 0;
  e.b = d != 0;
}

compiled with flag -O3 on recent gcc trunk, does this:

during GIMPLE pass: slp
bug656.c: In function ā€˜gā€™:
bug656.c:8:6: internal compiler error: in vect_get_and_check_slp_defs, at
tree-vect-slp.c:538
    8 | void g() {
      |      ^
0xf56852 vect_get_and_check_slp_defs(vec_info*, unsigned char,
vec<_stmt_vec_inf
o*, va_heap, vl_ptr>, unsigned int, vec<_slp_oprnd_info*, va_heap, vl_ptr>*)
        ../../trunk.git/gcc/tree-vect-slp.c:536

The bug first seems to occur sometime between 20201016 and 20201017.

Reply via email to