1 // RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample-thinlto-summary.prof %s -emit-llvm -o - 2>&1 | FileCheck %s -check-prefix=INLINE 2 // RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample-thinlto-summary.prof %s -emit-llvm -flto=thin -o - 2>&1 | FileCheck %s -check-prefix=NOINLINE 3 // Checks if hot call is inlined by normal compile, but not inlined by 4 // thinlto compile. 5 6 int baz(int); 7 int g; 8 9 void foo(int n) { 10 for (int i = 0; i < n; i++) 11 g += baz(i); 12 } 13 14 // INLINE-NOT: call{{.*}}foo 15 // NOINLINE: call{{.*}}foo 16 void bar(int n) { 17 for (int i = 0; i < n; i++) 18 foo(i); 19 } 20