72 lines · plain
1## Check that YAML profile for non-simple function is not reported as stale.2 3# RUN: split-file %s %t4# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %t/main.s -o %t.o5# RUN: %clang %cflags %t.o -o %t.exe -nostdlib6# RUN: llvm-bolt %t.exe -o %t.out --data %t/yaml --profile-ignore-hash -v=1 \7# RUN: --report-stale 2>&1 | FileCheck %s8 9# CHECK: BOLT-INFO: could not disassemble function main. Will ignore.10# CHECK: BOLT-INFO: could not disassemble function main.cold. Will ignore.11# CHECK: BOLT-INFO: 0 out of 2 functions in the binary (0.0%) have non-empty execution profile12# CHECK: BOLT-INFO: 1 function with profile could not be optimized13 14#--- main.s15.globl main16.type main, @function17main:18 .cfi_startproc19.LBB00:20 pushq %rbp21 movq %rsp, %rbp22 subq $16, %rsp23 testq %rax, %rax24 js .LBB0325.LBB01:26 jne .LBB0427.LBB02:28 nop29.LBB03:30 xorl %eax, %eax31 addq $16, %rsp32 popq %rbp33 retq34.LBB04:35 xorl %eax, %eax36 addq $16, %rsp37 popq %rbp38 retq39 .cfi_endproc40 .size main, .-main41 42.globl main.cold43.type main.cold, @function44main.cold:45 .cfi_startproc46 nop47 .cfi_endproc48 .size main.cold, .-main.cold49 50#--- yaml51---52header:53 profile-version: 154 binary-name: 'yaml-non-simple.s.tmp.exe'55 binary-build-id: '<unknown>'56 profile-flags: [ lbr ]57 profile-origin: branch profile reader58 profile-events: ''59 dfs-order: false60 hash-func: xxh361functions:62 - name: main63 fid: 064 hash: 0x000000000000000065 exec: 166 nblocks: 567 blocks:68 - bid: 169 insns: 170 succ: [ { bid: 3, cnt: 1} ]71...72