https://bugs.llvm.org/show_bug.cgi?id=47553

            Bug ID: 47553
           Summary: Missing autovectorization
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedb...@nondot.org
          Reporter: david.bolvan...@gmail.com
                CC: llvm-bugs@lists.llvm.org

#define N 8
unsigned int out[N];
unsigned int in[N];

void
main1 (unsigned int x)
{

  for (int i = 0; i < N; ++i)
    out[i] = (in[i] + x) * i;

}


ICC vectorized this code. Clang did not. llvm mca shows that ICC code should be
faster. #pragma clang loop vectorize(enable) does nothing in this case.

https://godbolt.org/z/rjYdnb

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to