Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / OpenMP / omp_with_loop_pragma.c
blobc1536afa9901701e114263b927f1f388d7eec35f
1 // RUN: %clang_cc1 -verify -fopenmp -x c -emit-llvm %s -triple x86_64-unknown-linux -o - -femit-all-decls -disable-llvm-passes | FileCheck %s
2 // RUN: %clang_cc1 -verify -x c -emit-llvm %s -triple x86_64-unknown-linux -o - -femit-all-decls -disable-llvm-passes | FileCheck %s
3 // expected-no-diagnostics
5 // CHECK: !{{[0-9]+}} = !{!"llvm.loop.vectorize.width", i32 1}
6 void sub(double *restrict a, double *restrict b, int n) {
7 int i;
9 #pragma omp parallel for
10 #pragma clang loop vectorize(disable)
11 for (i = 0; i < n; i++) {
12 a[i] = a[i] + b[i];