[llvm-branch-commits] [llvm] [BOLT] Hash-based function matching (PR #95821)
Amir Ayupov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 18 20:47:20 PDT 2024
================
@@ -0,0 +1,67 @@
+## Test YAMLProfileReader support for pass-through blocks in non-matching edges:
+## match the profile edge A -> C to the CFG with blocks A -> B -> C.
+
+# 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=1 \
+# RUN: --print-cfg 2>&1 | FileCheck %s
----------------
aaupov wrote:
Please add verbosity=2 logging for hash-based matching and explicitly check that we matched `main` BF to `main2` profile.
https://github.com/llvm/llvm-project/pull/95821
More information about the llvm-branch-commits
mailing list