Justin Bogner | 61ba2e3 | 2014-12-08 18:02:35 +0000 | [diff] [blame] | 1 | ;; No instrumentation should be emitted if there are no counter increments. |
| 2 | |
| 3 | ; RUN: opt < %s -instrprof -S | FileCheck %s |
Xinliang David Li | e6b8929 | 2016-04-18 17:47:38 +0000 | [diff] [blame] | 4 | ; RUN: opt < %s -passes=instrprof -S | FileCheck %s |
Xinliang David Li | c7018a2 | 2015-12-15 00:32:56 +0000 | [diff] [blame] | 5 | ; CHECK-NOT: @__profc |
| 6 | ; CHECK-NOT: @__profd |
Justin Bogner | 61ba2e3 | 2014-12-08 18:02:35 +0000 | [diff] [blame] | 7 | ; CHECK-NOT: @__llvm_profile_runtime |
| 8 | |
| 9 | define void @foo() { |
| 10 | ret void |
| 11 | } |