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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I got a bootstrap failure due to SLP not resetting the scev or freeing the
iterations estimates cache.

Reduced testcase:
```
void g(int);
void f(int *a)
{
  int n = a[0]++;
  int g1 = a[1]++;
  for(int i = 0; i < n; i++)
    g(g1);
}

```

ICE:
```
t22.cc: In function ‘void f(int*)’:
t22.cc:2:6: error: loop 1’s number of iterations ‘(((unsigned int)<unknown>) +
4294967295)’ references the released SSA name ‘<unknown>’
    2 | void f(int *a)
      |      ^
during GIMPLE pass: slp
dump file: t22.cc.186t.slp1
t22.cc:2:6: internal compiler error: in verify_loop_structure, at
cfgloop.cc:1741
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
```

Reply via email to