brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · b8a6497 Raw
49 lines · plain
1## Check that functions listed in -function-order list take precedence over2## lite mode function filtering.3 4# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o5# RUN: link_fdata %s %t.o %t.fdata6# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q7# RUN: llvm-bolt %t.exe --data %t.fdata --lite --reorder-functions=user \8# RUN:   --function-order=%p/Inputs/order-lite.txt -o %t -print-all 2>&1 \9# RUN:   | FileCheck %s10 11# CHECK: 1 out of 3 functions in the binary (33.3%) have non-empty execution profile12# CHECK-DAG: Binary Function "main" after reorder-functions13# CHECK-DAG: Binary Function "foo.__uniq.123" after reorder-functions14 15  .globl main16  .type main, %function17main:18	.cfi_startproc19.LBB06:20	callq	testfunc21	retq22	.cfi_endproc23.size main, .-main24 25  .globl testfunc26  .type testfunc, %function27testfunc:28# FDATA: 0 [unknown] 0 1 testfunc 0 1 029	.cfi_startproc30	pushq	%rbp31	movq	%rsp, %rbp32	movl	$0x0, %eax33	popq	%rbp34	retq35	.cfi_endproc36.size testfunc, .-testfunc37 38  .globl foo.__uniq.12339  .type foo.__uniq.123, %function40foo.__uniq.123:41	.cfi_startproc42	pushq	%rbp43	movq	%rsp, %rbp44	movl	$0x0, %eax45	popq	%rbp46	retq47	.cfi_endproc48.size foo.__uniq.123, .-foo.__uniq.12349