xref: /aosp_15_r20/external/llvm/test/Instrumentation/InstrProfiling/no-counters.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker;; No instrumentation should be emitted if there are no counter increments.
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instrprof -S | FileCheck %s
4*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -passes=instrprof -S | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: @__profc
6*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: @__profd
7*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: @__llvm_profile_runtime
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12