Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / pgo-cold-function-coverage.c
blob3003cdc3e15e02c6d6eebac3c6a50066a51914ca
1 // Test -fprofile-generate-cold-function-coverage
3 // RUN: rm -rf %t && split-file %s %t
4 // RUN: %clang --target=x86_64 -O2 -fprofile-generate-cold-function-coverage=/xxx/yyy/ -fprofile-sample-accurate -fprofile-sample-use=%t/pgo-cold-func.prof -S -emit-llvm -o - %t/pgo-cold-func.c | FileCheck %s
6 // CHECK: @__llvm_profile_filename = {{.*}} c"/xxx/yyy/default_%m.profraw\00"
8 // CHECK: store i8 0, ptr @__profc_bar, align 1
9 // CHECK-NOT: @__profc_foo
11 //--- pgo-cold-func.prof
12 foo:1:1
13 1: 1
15 //--- pgo-cold-func.c
16 int bar(int x) { return x;}
17 int foo(int x) {
18 return x;