summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/flatten.c
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-06-19 17:41:30 +0000
committerLeonard Chan <leonardchan@google.com>2019-06-19 17:41:30 +0000
commite6d2c8dde68936b19fe5fd95b5c96878993cc278 (patch)
tree6e1eb31344db06aea0746e9f8f53bf52398a5903 /clang/test/CodeGen/flatten.c
parent670778c762439b7b75ee10f2fb0dacbfe082efcd (diff)
downloadbcm5719-llvm-e6d2c8dde68936b19fe5fd95b5c96878993cc278.tar.gz
bcm5719-llvm-e6d2c8dde68936b19fe5fd95b5c96878993cc278.zip
[clang][NewPM] Fixing remaining -O0 tests that are broken under new PM
- CodeGen/flatten.c will fail under new PM becausec the new PM AlwaysInliner seems to intentionally inline functions but not call sites marked with alwaysinline (D23299) - Tests that check remarks happen to check them for the inliner which is not turned on at O0. These tests just check that remarks work, but we can make separate tests for the new PM with -O1 so we can turn on the inliner and check the remarks with minimal changes. Differential Revision: https://reviews.llvm.org/D62225 llvm-svn: 363846
Diffstat (limited to 'clang/test/CodeGen/flatten.c')
-rw-r--r--clang/test/CodeGen/flatten.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/flatten.c b/clang/test/CodeGen/flatten.c
index d766d543e01..410128a0bcd 100644
--- a/clang/test/CodeGen/flatten.c
+++ b/clang/test/CodeGen/flatten.c
@@ -1,3 +1,9 @@
+// UNSUPPORTED: experimental-new-pass-manager
+// Currently, different code seems to be intentionally generated under the new
+// PM since we alwaysinline functions and not callsites under new PM.
+// Under new PM, f() will not be inlined from g() since f is not marked as
+// alwaysinline.
+
// RUN: %clang_cc1 -triple=x86_64-linux-gnu %s -emit-llvm -o - | FileCheck %s
void f(void) {}
OpenPOWER on IntegriCloud