xref: /llvm-project/lld/test/MachO/cspgo-use.ll (revision 85af42df5dbb964d767feb16a5551dddb36fd4f1)
1; REQUIRES: x86
2
3; Create an empty profile
4; RUN: echo > %t.proftext
5; RUN: llvm-profdata merge %t.proftext -o %t.profdata
6
7; RUN: llvm-as %s -o %t.o
8; RUN: %lld -dylib --cs-profile-path=%t.profdata %t.o -o %t --lto-debug-pass-manager 2>&1 | FileCheck %s --implicit-check-not=PGOInstrumentation
9
10; CHECK: Running pass: PGOInstrumentationUse
11
12target triple = "x86_64-apple-darwin"
13target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
14
15define void @foo() {
16entry:
17  ret void
18}
19