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

            Bug ID: 47034
           Summary: Loops with "# pragma clang loop interleave (enable)"
                    specified are vectorized even if -fno-vectorize is
                    specified
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedb...@nondot.org
          Reporter: fj876...@aa.jp.fujitsu.com
                CC: llvm-bugs@lists.llvm.org

Loops with "# pragma clang loop interleave (enable)" specified are vectorized
even if -fno-vectorize is specified.
By the way, it is not interleaved. Is the movement as expected?


a.c

void foo(double * restrict a,
         double * restrict b,
         double * restrict c,
         int n) {

#pragma clang loop interleave(enable)
  for (int i=0;i<n;i++)
    c[i] = a[i] + b[i];

  return;
}


% clang -O1 -fno-vectorize a.c -Rpass=vectorize -S
a.c:7:3: remark: vectorized loop (vectorization width: 2, interleaved count: 1)
[-Rpass=loop-vectorize]
  for (int i=0;i<n;i++)
  ^
%

-- 
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