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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
And one similar issue:

$ cat ice2.i
int a, b, c, d;
int *e;
void fn1() {
  b = c > 0 ? c : 0;
  d += e[b];
  a = d > 0 ? d : 0;
}

$ gcc -Os -m32 --param scev-max-expr-size=0 -mavx512vnni -funroll-all-loops
ice2.i -c
during RTL pass: ira
ice2.i: In function ‘fn1’:
ice2.i:7:1: internal compiler error: in elimination_costs_in_insn, at
reload1.c:3547
    7 | }
      | ^
0x6ba890 elimination_costs_in_insn
        /home/marxin/Programming/gcc/gcc/reload1.c:3547
0xd4228d calculate_elim_costs_all_insns()
        /home/marxin/Programming/gcc/gcc/reload1.c:1609
0xbe715d ira_costs()
        /home/marxin/Programming/gcc/gcc/ira-costs.c:2305
0xbe0879 ira_build()
        /home/marxin/Programming/gcc/gcc/ira-build.c:3432
0xbd7807 ira
        /home/marxin/Programming/gcc/gcc/ira.c:5352
0xbd7807 execute
        /home/marxin/Programming/gcc/gcc/ira.c:5663

Reply via email to