aboutsummaryrefslogtreecommitdiff
path: root/bolt/test
diff options
context:
space:
mode:
authorshaw young <58664393+shawbyoung@users.noreply.github.com>2024-06-24 15:44:24 -0700
committerGitHub <noreply@github.com>2024-06-24 18:44:24 -0400
commit32e4906c28952d2dd8ed193cfd37856b98233ef5 (patch)
tree40b358f06fac479946dbcc58b86510191deb9c0c /bolt/test
parentb3c668b0055717633503ed26787037d9e3499781 (diff)
downloadllvm-32e4906c28952d2dd8ed193cfd37856b98233ef5.zip
llvm-32e4906c28952d2dd8ed193cfd37856b98233ef5.tar.gz
llvm-32e4906c28952d2dd8ed193cfd37856b98233ef5.tar.bz2
Revert "[BOLT] Hash-based function matching" (#96568)
Reverts llvm/llvm-project#95821
Diffstat (limited to 'bolt/test')
-rw-r--r--bolt/test/X86/hashing-based-function-matching.test64
1 files changed, 0 insertions, 64 deletions
diff --git a/bolt/test/X86/hashing-based-function-matching.test b/bolt/test/X86/hashing-based-function-matching.test
deleted file mode 100644
index 4426da0..0000000
--- a/bolt/test/X86/hashing-based-function-matching.test
+++ /dev/null
@@ -1,64 +0,0 @@
-## Tests function matching in YAMLProfileReader by function hash.
-
-# REQUIRES: system-linux
-# RUN: split-file %s %t
-# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %t/main.s -o %t.o
-# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
-# RUN: llvm-bolt %t.exe -o %t.out --data %t/yaml -v=2 \
-# RUN: --print-cfg --match-profile-with-function-hash 2>&1 --profile-ignore-hash=0 | FileCheck %s
-
-# CHECK: BOLT-INFO: matched 1 functions with hash
-
-#--- main.s
-.globl main
-.type main, @function
-main:
- .cfi_startproc
-.LBB00:
- pushq %rbp
- movq %rsp, %rbp
- subq $16, %rsp
- testq %rax, %rax
- js .LBB03
-.LBB01:
- jne .LBB04
-.LBB02:
- nop
-.LBB03:
- xorl %eax, %eax
- addq $16, %rsp
- popq %rbp
- retq
-.LBB04:
- xorl %eax, %eax
- addq $16, %rsp
- popq %rbp
- retq
-## For relocations against .text
-.LBB05:
- call exit
- .cfi_endproc
- .size main, .-main
-
-#--- yaml
----
-header:
- profile-version: 1
- binary-name: 'hashing-based-function-matching.s.tmp.exe'
- binary-build-id: '<unknown>'
- profile-flags: [ lbr ]
- profile-origin: branch profile reader
- profile-events: ''
- dfs-order: false
- hash-func: xxh3
-functions:
- - name: main2
- fid: 0
- hash: 0x72F82DEAA6FE65FB
- exec: 1
- nblocks: 6
- blocks:
- - bid: 1
- insns: 1
- succ: [ { bid: 3, cnt: 1} ]
-...