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

            Bug ID: 111795
           Summary: OMP SIMD inbranch call vectorization missing for
                    AVX512
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

We don't currently handle the following

int x[1024];

#pragma omp declare simd simdlen(16) inbranch
__attribute__((noinline)) int
foo (int a, int b)
{
  return a + b;
}

void __attribute__((noipa))
bar (void)
{
#pragma omp simd
  for (int i = 0; i < 1024; i++)
    {
      if (x[i] < 10)
        x[i] = foo (x[i], x[i]);
    }
}

Reply via email to