28 lines · plain
1; Generate summary sections2; RUN: opt -module-summary %s -o %t1.o3; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o4 5; RUN: rm -f %t1.o.4.opt.bc6; 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 %t313; RUN: opt -S %t1.o.4.opt.bc | FileCheck %s14 15target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"16target triple = "x86_64-unknown-linux-gnu"17 18; CHECK: ProfileSummary19declare void @g(...)20declare void @h(...)21 22define void @f() {23entry:24 call void (...) @g()25 call void (...) @h()26 ret void27}28