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

--- Comment #3 from vries at gcc dot gnu.org ---
testcase:
...
#define N 1000

unsigned int a[N];
unsigned int b[N];
unsigned int c[N];

void __attribute__((noclone,noinline))
f (unsigned int n)
{
  int i;

#pragma omp parallel
  {
#pragma omp for
    for (i = 0; i < n; ++i)
      c[i] = a[i] + b[i];
  }
}
...

compiled with -O2 -ftree-parallelize-loops=2

Reply via email to