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

            Bug ID: 83867
           Summary: [8 Regression] ICE: Segmentation fault in
                    nested_in_vect_loop_p
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-8.0.0-alpha20180114 snapshot (r256677) ICEs when compiling the following
snippet w/ -O1 -ftree-loop-vectorize -ftrapv:

int
k5 (int u5, int aw)
{
  int v6;

  while (u5 < 1)
    {
      while (v6 < 4)
        ++v6;

      v6 = 0;
      aw += u5 > 0;
      ++u5;
    }

  return aw;
}

% gcc-8.0.0-alpha20180114 -O1 -ftree-loop-vectorize -ftrapv -c cdwkvpqv.c       
during GIMPLE pass: vect
cdwkvpqv.c: In function 'k5':
cdwkvpqv.c:2:1: internal compiler error: Segmentation fault
 k5 (int u5, int aw)
 ^~
0xc9910f crash_signal
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20180114/work/gcc-8-20180114/gcc/toplev.c:325
0xee1fbe nested_in_vect_loop_p
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20180114/work/gcc-8-20180114/gcc/tree-vectorizer.h:587
0xee1fbe vect_transform_stmt(gimple*, gimple_stmt_iterator*, bool*, _slp_tree*,
_slp_instance*)
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20180114/work/gcc-8-20180114/gcc/tree-vect-stmts.c:9529
0xef77cb vect_transform_loop(_loop_vec_info*)
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20180114/work/gcc-8-20180114/gcc/tree-vect-loop.c:8835
0xf1442f vectorize_loops()
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20180114/work/gcc-8-20180114/gcc/tree-vectorizer.c:740

Reply via email to