aboutsummaryrefslogtreecommitdiffstats
path: root/test/Instrumentation/InstrProfiling/no-counters.ll
blob: 0716b0d8c6f2f2688b368f0190a149c02736e941 (plain)
1
2
3
4
5
6
7
8
9
10
;; No instrumentation should be emitted if there are no counter increments.

; RUN: opt < %s -instrprof -S | FileCheck %s
; CHECK-NOT: @__llvm_profile_counters
; CHECK-NOT: @__llvm_profile_data
; CHECK-NOT: @__llvm_profile_runtime

define void @foo() {
  ret void
}