[llvm] [X86][llvm-exegesis] fix LNLP performance counter binding issue (PR #146348)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 06:15:54 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-x86

Author: Mahesh-Attarde (mahesh-attarde)

<details>
<summary>Changes</summary>

We added LNLP sched model recently, PFM counter bounding names needs to match  cpu string.


---
Full diff: https://github.com/llvm/llvm-project/pull/146348.diff


1 Files Affected:

- (modified) llvm/lib/Target/X86/X86PfmCounters.td (+1-1) 


``````````diff
diff --git a/llvm/lib/Target/X86/X86PfmCounters.td b/llvm/lib/Target/X86/X86PfmCounters.td
index 20d96ffdb482e..b299633446410 100644
--- a/llvm/lib/Target/X86/X86PfmCounters.td
+++ b/llvm/lib/Target/X86/X86PfmCounters.td
@@ -254,7 +254,7 @@ def LunarLakePfmCounters : ProcPfmCounters {
   ];
   let ValidationCounters = DefaultIntelPfmValidationCounters;
 }
-def : PfmCountersBinding<"Lunarlake", LunarLakePfmCounters>;
+def : PfmCountersBinding<"lunarlake", LunarLakePfmCounters>;
 
 // AMD X86 Counters.
 defvar DefaultAMDPfmValidationCounters = [

``````````

</details>


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


More information about the llvm-commits mailing list