mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 05:55:43 -04:00

- 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
15 lines
349 B
C++
15 lines
349 B
C++
// UNSUPPORTED: experimental-new-pass-manager
|
|
// See the comment for CodeGen/flatten.c on why this is unsupported with the new
|
|
// PM.
|
|
|
|
// RUN: %clang_cc1 -triple=x86_64-linux-gnu -std=c++11 %s -emit-llvm -o - | FileCheck %s
|
|
|
|
void f(void) {}
|
|
|
|
[[gnu::flatten]]
|
|
// CHECK: define void @_Z1gv()
|
|
void g(void) {
|
|
// CHECK-NOT: call {{.*}} @_Z1fv
|
|
f();
|
|
}
|