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

            Bug ID: 87473
           Summary: [7/8/9 Regression] ICE in create_add_on_incoming_edge,
                    at gimple-ssa-strength-reduction.c:2344
           Product: gcc
           Version: 9.0
            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-alpha20180923 snapshot (r264518), 8.2, 7.3 ICE when compiling the
following snippet w/ -O3 -fno-tree-ch:

void
t6 (int qz, int wh)
{
  int jl = wh;

  while (1.0 / 0 < 1)
    {
      qz = wh * (wh + 2);

      while (wh < 1)
        jl = 0;
    }

  while (qz < 1)
    qz = jl * wh;
}

% gcc-9.0.0-alpha20180923 -O3 -fno-tree-ch -w -c ufqwb34v.c
during GIMPLE pass: slsr
ufqwb34v.c: In function 't6':
ufqwb34v.c:2:1: internal compiler error: in create_add_on_incoming_edge, at
gimple-ssa-strength-reduction.c:2344
2 | t6 (int qz, int wh)
  | ^~
0x14a2850 create_add_on_incoming_edge
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/gimple-ssa-strength-reduction.c:2344
0x14a2c53 create_phi_basis_1
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/gimple-ssa-strength-reduction.c:2447
0x14a3111 create_phi_basis
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/gimple-ssa-strength-reduction.c:2495
0x14a4a1d replace_profitable_candidates
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/gimple-ssa-strength-reduction.c:3844
0x14a8d7b analyze_candidates_and_replace
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/gimple-ssa-strength-reduction.c:3944
0x14a8d7b execute
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20180923/work/gcc-9-20180923/gcc/gimple-ssa-strength-reduction.c:4022

Reply via email to