xref: /llvm-project/llvm/test/Other/new-pm-pseudo-probe.ll (revision 4b3202e639eb41e919b059dae49ad545a97e2af2)
1; RUN: opt -S -passes='default<O1>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s
2; RUN: opt -S -passes='default<O2>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s
3; RUN: opt -S -passes='thinlto-pre-link<O1>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s
4; RUN: opt -S -passes='thinlto-pre-link<O2>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s
5
6define void @foo() {
7  ret void
8}
9
10;; Check the SampleProfileProbePass is enabled under the -pseudo-probe-for-profiling switch.
11;; The switch can be used to test a specific pass order in a particular setup, e.g, in unique-internal-linkage-names.ll
12; CHECK: Running pass: SampleProfileProbePass
13