[llvm] [SampleProfile] Ignore the .cfi suffix when matching functions to profiles (PR #220271)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 1 09:15:39 PDT 2026
================
@@ -0,0 +1,36 @@
+; In the ThinLTO backend, LowerTypeTests renames the body of a function that is
+; a CFI jump table member from foo to foo.cfi. Profiles are keyed by the
+; original name, so the suffix must be ignored when looking up samples, also
+; when it follows the suffix of a promoted local function.
+; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/cfi-suffix.prof -S | FileCheck %s
----------------
boomanaiden154 wrote:
We can probably use update_test_checks.py here?
https://github.com/llvm/llvm-project/pull/220271
More information about the llvm-commits
mailing list