13 lines · plain
1; RUN: opt -S -passes='default<O1>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s2; RUN: opt -S -passes='default<O2>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s3; RUN: opt -S -passes='thinlto-pre-link<O1>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s4; RUN: opt -S -passes='thinlto-pre-link<O2>' -pseudo-probe-for-profiling -debug-pass-manager < %s 2>&1 | FileCheck %s5 6define void @foo() {7 ret void8}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.ll12; CHECK: Running pass: SampleProfileProbePass13