summaryrefslogtreecommitdiff
path: root/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
commitfe783bd98452fb872ad01eb217bfba0584cae228 (patch)
tree9a1dde6ca32f474f03055e2d85a32b3ac6198b23 /test/CodeGen/flatten.c
parent4df2fbbebb653f12f61ed3537ec2c99509d43a5b (diff)
downloadclang-fe783bd98452fb872ad01eb217bfba0584cae228.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/flatten.c')
-rw-r--r--test/CodeGen/flatten.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/flatten.c b/test/CodeGen/flatten.c
index d766d543e0..410128a0bc 100644
--- a/test/CodeGen/flatten.c
+++ b/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) {}