[llvm-branch-commits] [llvm] [BOLT] Name similarity function matching (PR #95884)

Maksim Panchenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jun 27 14:45:42 PDT 2024


================
@@ -0,0 +1,64 @@
+## Tests function matching in YAMLProfileReader by name similarity.
+
+# 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 --name-similarity-function-matching-threshold=1 2>&1 --funcs=main --profile-ignore-hash=0 | FileCheck %s
----------------
maksfb wrote:

```suggestion
# RUN:   --print-cfg --name-similarity-function-matching-threshold=1 --funcs=main --profile-ignore-hash=0 2>&1 | FileCheck %s
```

https://github.com/llvm/llvm-project/pull/95884


More information about the llvm-branch-commits mailing list