summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/callback_annotated.c
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-06-05 03:17:11 +0000
committerPetr Hosek <phosek@chromium.org>2019-06-05 03:17:11 +0000
commit516e6cc1dd946de52288159d24a87df0c3dbdebb (patch)
tree22aac2761931e1d9016d8c67ac3c8d9ac670564c /clang/test/CodeGen/callback_annotated.c
parent2057f8366a40621f24209f886b1d95fb6fa25bdb (diff)
downloadbcm5719-llvm-516e6cc1dd946de52288159d24a87df0c3dbdebb.tar.gz
bcm5719-llvm-516e6cc1dd946de52288159d24a87df0c3dbdebb.zip
[Clang] Disable new PM for tests that use optimization level -O1, -O2 and -O3
Tests that use -O1, -O2 and -O3 would often produce different results with the new pass manager which makes these tests fail. Disable new PM explicitly for these tests. Differential Revision: https://reviews.llvm.org/D58375 llvm-svn: 362580
Diffstat (limited to 'clang/test/CodeGen/callback_annotated.c')
-rw-r--r--clang/test/CodeGen/callback_annotated.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/callback_annotated.c b/clang/test/CodeGen/callback_annotated.c
index feacda27541..c5b431d5ef8 100644
--- a/clang/test/CodeGen/callback_annotated.c
+++ b/clang/test/CodeGen/callback_annotated.c
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -triple i386-unknown-unknown -fopenmp -O1 %s -emit-llvm -o - | FileCheck %s --check-prefix=RUN1
-// RUN: %clang_cc1 -triple i386-unknown-unknown -fopenmp -O1 %s -emit-llvm -o - | FileCheck %s --check-prefix=RUN2
-// RUN: %clang_cc1 -triple i386-unknown-unknown -fopenmp -O1 %s -emit-llvm -o - | opt -ipconstprop -S | FileCheck --check-prefix=IPCP %s
+// RUN: %clang_cc1 -triple i386-unknown-unknown -fopenmp -O1 -fno-experimental-new-pass-manager %s -emit-llvm -o - | FileCheck %s --check-prefix=RUN1
+// RUN: %clang_cc1 -triple i386-unknown-unknown -fopenmp -O1 -fno-experimental-new-pass-manager %s -emit-llvm -o - | FileCheck %s --check-prefix=RUN2
+// RUN: %clang_cc1 -triple i386-unknown-unknown -fopenmp -O1 -fno-experimental-new-pass-manager %s -emit-llvm -o - | opt -ipconstprop -S | FileCheck --check-prefix=IPCP %s
// RUN1-DAG: @broker0({{[^#]*#[0-9]+}} !callback ![[cid0:[0-9]+]]
__attribute__((callback(1, 2))) void *broker0(void *(*callee)(void *), void *payload) {
OpenPOWER on IntegriCloud