| 1 |
; Generate summary sections |
| 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: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ |
| 7 |
; RUN: -m elf_x86_64 \ |
| 8 |
; RUN: --plugin-opt=thinlto \ |
| 9 |
; RUN: --plugin-opt=save-temps \ |
| 10 |
; RUN: --plugin-opt=sample-profile=%p/Inputs/afdo.prof \ |
| 11 |
; RUN: --plugin-opt=jobs=1 \ |
| 12 |
; RUN: -shared %t1.o %t2.o -o %t3 |
| 13 |
; RUN: opt -S %t1.o.4.opt.bc | FileCheck %s |
| 14 |
|
| 15 |
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 16 |
target triple = "x86_64-unknown-linux-gnu" |
| 17 |
|
| 18 |
; CHECK: ProfileSummary |
| 19 |
declare void @g(...) |
| 20 |
declare void @h(...) |
| 21 |
|
| 22 |
define void @f() { |
| 23 |
entry: |
| 24 |
call void (...) @g() |
| 25 |
call void (...) @h() |
| 26 |
ret void |
| 27 |
} |