llvm-for-llvmta/tools/clang/test/CodeGen/opt-record-1.c

17 lines
609 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 %s -O3 -opt-record-file=t1.opt -fopenmp -emit-llvm-bc -o %t.bc
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 -O3 -x ir %t.bc -opt-record-file %t.opt -fopenmp -emit-obj
// RUN: cat %t.opt | FileCheck -check-prefix=CHECK %s
// REQUIRES: x86-registered-target
void foo(int *a, int *b, int *c) {
#pragma omp parallel for
for (int i = 0; i < 100; i++) {
a[i] = b[i] + c[i];
}
}
// CHECK: --- !Missed
// CHECK: Pass: inline
// CHECK: Name: NoDefinition
// CHECK: Function: foo