summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/pgo-max-function-count.c
blob: b60a4671eb11c571dc7592db54b9cd435e3033fb (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang -fprofile-generate -o %t -O2 %s
// RUN: env LLVM_PROFILE_FILE=%t.profraw  %t
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
// RUN: %clang -fprofile-use=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
// Check
int main() {
  return 0;
}
// CHECK: !{{[0-9]+}} = !{i32 1, !"MaxFunctionCount", i32 1}
OpenPOWER on IntegriCloud