54 lines · plain
1## This test ensures that a YAML profile with multiple profiles matching the same2## function is handled gracefully.3 4# REQUIRES: system-linux5# RUN: split-file %s %t6# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %t/main.s -o %t.o7# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib8# RUN: llvm-bolt %t.exe -o %t.null --data %t/profile.yaml \9# RUN: --profile-ignore-hash -v=1 2>&1 | FileCheck %s10# CHECK: BOLT-WARNING: dropping duplicate profile for main_alias(*2)11#--- main.s12 .globl main_alias13 .type main_alias, %function14main_alias:15 .globl main16 .type main, %function17main:18 .cfi_startproc19 cmpl $0x0, %eax20 retq21 .cfi_endproc22.size main, .-main23.size main_alias, .-main_alias24#--- profile.yaml25---26header:27 profile-version: 128 binary-name: 'yaml-multiple-profiles.test.tmp.exe'29 binary-build-id: '<unknown>'30 profile-flags: [ lbr ]31 profile-origin: branch profile reader32 profile-events: ''33 dfs-order: false34functions:35 - name: 'main(*2)'36 fid: 137 hash: 0x50BBA3441D43649138 exec: 139 nblocks: 140 blocks:41 - bid: 042 insns: 243 hash: 0x4D4D8FAF7D4C000044 - name: 'main_alias(*2)'45 fid: 146 hash: 0x50BBA3441D43649147 exec: 148 nblocks: 149 blocks:50 - bid: 051 insns: 252 hash: 0x4D4D8FAF7D4C000053...54