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

            Bug ID: 92371
           Summary: ice in info_for_reduction, at tree-vect-loop.c:4106
           Product: gcc
           Version: 10.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:

a, b;
d() {
  int c = sizeof(int);
  for (; a; a++)
    c *= sizeof(int);
  c *= sizeof(int);
  b = c;
}

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

/home/dcb/gcc/results/bin/gcc -c -O3 bug560.c
during GIMPLE pass: vect
bug560.c: In function ā€˜d’:
bug560.c:2:6: internal compiler error: in info_for_reduction, at
tree-vect-loop.c:4106
    2 | void d() {
      |      ^
0x7124e4 info_for_reduction(_stmt_vec_info*)
        ../../trunk/gcc/tree-vect-loop.c:4106
0x10f9326 vectorizable_live_operation(_stmt_vec_info*, gimple_stmt_iterator*,
_slp_tree*, _slp_instance*, int, bool, vec<stmt_info_for_cost, va_heap,
vl_ptr>*)
        ../../trunk/gcc/tree-vect-loop.c:7562
0x10ec93f can_vectorize_live_stmts
        ../../trunk/gcc/tree-vect-stmts.c:10612
0x10ec93f can_vectorize_live_stmts
        ../../trunk/gcc/tree-vect-stmts.c:10593

The bug seems to first appear sometime between revision 277600 and
277650.

Reply via email to