xref: /llvm-project/lld/test/COFF/lto-sample-profile.ll (revision a9fe23cde3ee554f4bd6118edcc2e747f3a8d8d5)
1; REQUIRES: x86
2; RUN: opt -module-summary %s -o %t1.o
3; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o
4
5; RUN: rm -f %t1.o.4.opt.bc
6; RUN: lld-link /lto-sample-profile:%p/Inputs/lto-sample-profile.prof /lldsavetemps /entry:f /subsystem:console %t1.o %t2.o /out:%t3.exe
7; RUN: opt -S %t1.o.4.opt.bc | FileCheck %s
8
9target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10target triple = "x86_64-pc-windows-msvc19.0.24215"
11
12; CHECK: ![[#]] = !{i32 1, !"ProfileSummary", ![[#]]}
13declare void @g(...)
14
15define void @h() {
16  ret void
17}
18define void @f() {
19entry:
20  call void (...) @g()
21  call void (...) @h()
22  ret void
23}
24