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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Simplified testcase:
```
static inline int size(int *a)
{
  int t = *a;
  if (t < 0)  __builtin_unreachable();
  return t;
}

void f(int *l, float *d)
{
  for(int i = 0; i < size(l); i++)
  {
    d[i] = 0.0f;
  }
}
```

This should produce a memset but does not; though with my patch it does.

Reply via email to