[PATCH] D70691: Optimization record for bytecode input missing- PR44000
Zahira Ammarguellat via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 14:34:28 PST 2019
zahiraam added a comment.
This might be easier to read the edit that I have made:
ksh-3.2$ git diff
diff --git a/clang/test/CodeGen/opt-record-1.c b/clang/test/CodeGen/opt-record-1.c
index 3f37e32..00a753d 100644
- a/clang/test/CodeGen/opt-record-1.c
+++ b/clang/test/CodeGen/opt-record-1.c
@@ -1,12 +1,12 @@
-// RUN: %clang_cc1 %s -opt-record-file=t1.opt -fopenmp -emit-llvm-bc -o %t.bc
-// RUN: %clang_cc1 -x ir %t.bc -opt-record-file %t.opt -fopenmp -emit-obj
+// 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
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];
- }
+ for (int i = 0; i < 100; i++) {
+ a[i] = b[i] + c[i];
+ }
}
// CHECK: --- !Missed
ksh-3.2$
And I checked that it passes.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70691/new/
https://reviews.llvm.org/D70691
More information about the llvm-commits
mailing list