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

            Bug ID: 86725
           Summary: ICE: Segmentation fault (in
                    vect_get_vec_def_for_operand_1)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-9.0.0-alpha20180722 snapshot (r262923), 8.1, 7.3, 6.3, 5.4, 4.9.4 all ICE
when compiling the following snippet w/ -O1 -ftree-loop-vectorize
-fno-tree-scev-cprop:

int
nr (int xe)
{
  int oo, wo = 0;

  for (oo = 0; oo < 4; ++oo)
    {
      int qq;

      for (qq = 0; qq < 2; ++qq)
        {
          wo += 0x80000000;
          xe += wo;
        }
    }

  return xe;
}

% gcc-9.0.0-alpha20180722 -O1 -ftree-loop-vectorize -fno-tree-scev-cprop -c
nglfihdk.c
during GIMPLE pass: vect
nglfihdk.c: In function 'nr':
nglfihdk.c:2:1: internal compiler error: Segmentation fault
 nr (int xe)
 ^~
0xc967cf crash_signal
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/toplev.c:325
0xeb1a8b vect_get_vec_def_for_operand_1(gimple*, vect_def_type)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/tree-vect-stmts.c:1524
0xeb5b0d vect_get_vec_def_for_operand(tree_node*, gimple*, tree_node*)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/tree-vect-stmts.c:1591
0xed75fb vectorizable_induction(gimple*, gimple_stmt_iterator*, gimple**,
_slp_tree*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/tree-vect-loop.c:7650
0xecf61a vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*, _slp_tree*,
_slp_instance*)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/tree-vect-stmts.c:9634
0xeded4b vect_transform_loop(_loop_vec_info*)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/tree-vect-loop.c:8545
0xf02a4d try_vectorize_loop_1
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/tree-vectorizer.c:783
0xf03529 vectorize_loops()
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180722/work/gcc-9-20180722/gcc/tree-vectorizer.c:917

Reply via email to