[Bug tree-optimization/65511] transform_to_exit_first_loop looses edge probabilities

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 22 12:52:00 GMT 2015


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



More information about the Gcc-bugs mailing list