xref: /llvm-project/llvm/test/Other/new-pm-memprof.ll (revision 87f5e22987f509b7bd5b67eb2a19697508077f25)
1;; Ensure we invoke the preinliner when feeding back a memprof profile.
2
3;; The opt invocation will fail as the profdata file is empty, which is fine
4;; since we are simply testing the pass pipeline below.
5; RUN: not opt -debug-pass-manager -passes='default<O2>' -memory-profile-file=/dev/null %s 2>&1 | FileCheck %s
6
7; CHECK: Running pass: InlinerPass on (foo)
8; CHECK: Running pass: MemProfUsePass
9
10define void @foo() {
11  ret void
12}
13