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

            Bug ID: 87446
           Summary: [7/8/9 Regression] ICE in expand_LOOP_VECTORIZED, at
                    internal-fn.c:2431
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-9.0.0-alpha20180923 snapshot (r264518) ICEs when compiling the following
snippet w/ -O3 (-Ofast) -fno-code-hoisting -fno-expensive-optimizations
-fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce -fno-tree-dominator-opts
-fno-tree-forwprop -fno-tree-pre -fno-tree-scev-cprop:

int
kg (int fs)
{
  int ij;
  unsigned int jt;

  for (jt = 0; jt < 1; ++jt)
    {
      ++fs;
      ij = fs;
    }

  return ij;
}

% gcc-9.0.0-alpha20180923 -O3 -fno-code-hoisting -fno-expensive-optimizations
-fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce -fno-tree-dominator-opts
-fno-tree-forwprop -fno-tree-pre -fno-tree-scev-cprop -c kj92n7c0.c
during RTL pass: expand
kj92n7c0.c: In function 'kg':
kj92n7c0.c:2:1: internal compiler error: in expand_LOOP_VECTORIZED, at
internal-fn.c:2431
2 | kg (int fs)
  | ^~
0x625c4a expand_LOOP_VECTORIZED
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/internal-fn.c:2431
0x89c1d7 expand_call_stmt
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/cfgexpand.c:2603
0x89c1d7 expand_gimple_stmt_1
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/cfgexpand.c:3582
0x89c1d7 expand_gimple_stmt
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/cfgexpand.c:3741
0x89d1e1 expand_gimple_basic_block
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/cfgexpand.c:5777
0x8a1fe7 execute
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/cfgexpand.c:6382

Reply via email to