brintos

brintos / llvm-project-archived public Read only

0
0
Text · 827 B · 7843804 Raw
33 lines · plain
1## Check that trampoline functions are excluded from density computation.2 3# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o4# RUN: ld.lld %t.o -o %t5# RUN: link_fdata %s %t %t.preagg PREAGG6# RUN: llvm-strip -NLjmp %t7# RUN: perf2bolt %t -p %t.preagg --pa -o %t.fdata | FileCheck %s8# CHECK: Functions with density >= {{.*}} account for 99.00% total sample counts.9# CHECK-NOT: the output profile is empty or the --profile-density-cutoff-hot option is set too low.10 11  .text12  .globl trampoline13trampoline:14  mov main,%rax15  jmpq *%rax16.size trampoline,.-trampoline17# PREAGG: f #trampoline# #trampoline# 218 19	.globl main20main:21	.cfi_startproc22	vmovaps %zmm31,%zmm323 24	add    $0x4,%r925	add    $0x40,%r1026	dec    %r1427Ljmp:28	jne    main29# PREAGG: T #Ljmp# #main# #Ljmp# 1030	ret31	.cfi_endproc32.size main,.-main33