summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/InstrProfiling/no-counters.ll
blob: 4c1905b2eaa0671b5b471c4a7605ef59f379d986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;; Emit the runtime hook even if there are no counter increments.

; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -instrprof -S | FileCheck %s -check-prefixes=ALL,DARWIN
; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,DARWIN
; RUN: opt < %s -mtriple=x86_64-linux-unknown -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,LINUX
; ALL-NOT: @__profc
; ALL-NOT: @__profd
; DARWIN: @__llvm_profile_runtime
; LINUX-NOT: @__llvm_profile_runtime

define void @foo() {
  ret void
}
OpenPOWER on IntegriCloud