xref: /llvm-project/llvm/test/Instrumentation/InstrProfiling/no-counters.ll (revision 461a1836d3d77371bb6271fefd645897997a22b8)
1;; Emit the runtime hook even if there are no counter increments.
2
3; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,DARWIN
4; RUN: opt < %s -mtriple=x86_64-linux-unknown -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,LINUX
5; RUN: opt < %s -mtriple=powerpc64-ibm-aix-xcoff -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,LINUX
6; ALL-NOT: @__profc
7; ALL-NOT: @__profd
8; DARWIN: @__llvm_profile_runtime
9; LINUX-NOT: @__llvm_profile_runtime
10
11define void @foo() {
12  ret void
13}
14