[Bug tree-optimization/87790] New: [9 Regression] ICE in vect_get_vec_def_for_operand_1, at tree-vect-stmts.c:1475

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 29 10:17:00 GMT 2018


            Bug ID: 87790
           Summary: [9 Regression] ICE in vect_get_vec_def_for_operand_1,
                    at tree-vect-stmts.c:1475
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Following cases an ICE:

$ cat dfa.i
int a, b;
void c(int d[][8]) {
  int e, f;
  for (; b; b++) {
    e = d[b][0] % 4 * 21;
    if (e >= 21)
    a = d[b][0] - e;
    f = 1;
    for (; f != 8; f++)
      d[b][f] = a;

$ gcc dfa.i -Ofast -fprofile-generate -c -march=znver1
during GIMPLE pass: vect
dfa.i: In function ‘c’:
dfa.i:2:6: internal compiler error: in vect_get_vec_def_for_operand_1, at
    2 | void c(int d[][8]) {
      |      ^
0xf7cdce vect_get_vec_def_for_operand_1(_stmt_vec_info*, vect_def_type)
0xf7f2ad vect_get_vec_def_for_operand(tree_node*, _stmt_vec_info*, tree_node*)
0xf86bb5 vectorizable_condition(_stmt_vec_info*, gimple_stmt_iterator*,
_stmt_vec_info**, tree_node*, int, _slp_tree*, vec<stmt_info_for_cost, va_heap,
0xf9af25 vect_transform_stmt(_stmt_vec_info*, gimple_stmt_iterator*,
_slp_tree*, _slp_instance*)
0xf9cfd3 vect_transform_loop_stmt
0xfaf2f3 vect_transform_loop(_loop_vec_info*)
0xfceb85 try_vectorize_loop_1
0xfcf636 vectorize_loops()
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.

More information about the Gcc-bugs mailing list