diff options
author | Leonard Chan <leonardchan@google.com> | 2019-06-21 16:03:06 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2019-06-21 16:03:06 +0000 |
commit | cea41a9fb15eab9e38dceacedd63420ae4063ed0 (patch) | |
tree | f9c852e341f8ce4f3f056cbc1913718bd47f2cd9 /test/CodeGenObjCXX | |
parent | 49034bc138925640b3b88473f99e27e418d7669b (diff) |
[clang][NewPM] Add -fno-experimental-new-pass-manager to tests
As per the discussion on D58375, we disable test that have optimizations under
the new PM. This patch adds -fno-experimental-new-pass-manager to RUNS that:
- Already run with optimizations (-O1 or higher) that were missed in D58375.
- Explicitly test new PM behavior along side some new PM RUNS, but are missing
this flag if new PM is enabled by default.
- Specify -O without the number. Based on getOptimizationLevel(), it seems the
default is 2, and the IR appears to be the same when changed to -O2, so
update the test to explicitly say -O2 and provide -fno-experimental-new-pass-manager`.
Differential Revision: https://reviews.llvm.org/D63156
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjCXX')
-rw-r--r-- | test/CodeGenObjCXX/os_log.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenObjCXX/os_log.mm b/test/CodeGenObjCXX/os_log.mm index 78bc902f73..7ed104f5e7 100644 --- a/test/CodeGenObjCXX/os_log.mm +++ b/test/CodeGenObjCXX/os_log.mm @@ -1,5 +1,7 @@ // RUN: %clang_cc1 %s -emit-llvm -o - -triple x86_64-darwin-apple -fobjc-arc \ -// RUN: -fexceptions -fcxx-exceptions -O1 | FileCheck %s +// RUN: -fexceptions -fcxx-exceptions -O1 -fno-experimental-new-pass-manager | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -o - -triple x86_64-darwin-apple -fobjc-arc \ +// RUN: -fexceptions -fcxx-exceptions -O1 -fexperimental-new-pass-manager -fno-inline | FileCheck %s // Check that no EH cleanup is emitted around the call to __os_log_helper. namespace no_eh_cleanup { |