blob: 4bc57ec6ef007943356e2d1999cc854d929c99eb [file] [log] [blame]
Justin Bogner61ba2e32014-12-08 18:02:35 +00001;; No instrumentation should be emitted if there are no counter increments.
2
3; RUN: opt < %s -instrprof -S | FileCheck %s
Xinliang David Lie6b89292016-04-18 17:47:38 +00004; RUN: opt < %s -passes=instrprof -S | FileCheck %s
Xinliang David Lic7018a22015-12-15 00:32:56 +00005; CHECK-NOT: @__profc
6; CHECK-NOT: @__profd
Justin Bogner61ba2e32014-12-08 18:02:35 +00007; CHECK-NOT: @__llvm_profile_runtime
8
9define void @foo() {
10 ret void
11}