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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Thanks for the fix, I've got one another test-case that started to ICE since
the affected revision:

$ cat ice.i
int c;
unsigned char d;
int e (unsigned char *f)
{
  int g;
  for (int a; a; a++)
    {
      for (int b = 0; b < 6; b++)
        g += __builtin_abs (f[b] - d);
      f += c;
    }
  return g;
}

$ gcc -ftrapv -Ofast ice.i
during GIMPLE pass: vect
ice.i: In function ‘e’:
ice.i:3:5: internal compiler error: in vectorize_fold_left_reduction, at
tree-vect-loop.c:6217
 int e (unsigned char *f)
     ^
0x11c140a vectorize_fold_left_reduction
        ../../gcc/tree-vect-loop.c:6217
0x11c4985 vectorizable_reduction(gimple*, gimple_stmt_iterator*, gimple**,
_slp_tree*, _slp_instance*)
        ../../gcc/tree-vect-loop.c:7375
0x11a83bc vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*,
_slp_tree*, _slp_instance*)
        ../../gcc/tree-vect-stmts.c:9512
0x11e5f5e vect_schedule_slp_instance
        ../../gcc/tree-vect-slp.c:4187
0x11e62c8 vect_schedule_slp(vec_info*)
        ../../gcc/tree-vect-slp.c:4255
0x11c974f vect_transform_loop(_loop_vec_info*)
        ../../gcc/tree-vect-loop.c:8881
0x11ec714 vectorize_loops()
        ../../gcc/tree-vectorizer.c:740
0x1092f65 execute
        ../../gcc/tree-ssa-loop.c:414
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to