[llvm] [llvm-exegesis] Add Pfm Counters for SapphireRapids (PR #113847)

Haohai Wen via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 07:21:22 PDT 2024


================
@@ -59,6 +59,8 @@ def SPRPort01_05          : ProcResGroup<[SPRPort01, SPRPort05]>;
 def SPRPort01_05_10       : ProcResGroup<[SPRPort01, SPRPort05, SPRPort10]>;
 def SPRPort02_03          : ProcResGroup<[SPRPort02, SPRPort03]>;
 def SPRPort02_03_11       : ProcResGroup<[SPRPort02, SPRPort03, SPRPort11]>;
+def SPRPort02_03_10       : ProcResGroup<[SPRPort02, SPRPort03, SPRPort10]>;
+def SPRPort05_11          : ProcResGroup<[SPRPort05, SPRPort11]>;
----------------
HaohaiWen wrote:

If I recall correctly, 2,3,11 is a group according to intel optimization manual. https://www.intel.com/content/www/us/en/content-details/814198/intel-64-and-ia-32-architectures-optimization-reference-manual-volume-1.html
uops.info and some website and even some intel tool made mistake to swap them.
I fixed this in https://reviews.llvm.org/D130897. llvm/utils/schedtool/tools/add_uops_uopsinfo.py:29 `print('Warning: port 10 and port 11 are reversed on uops.info.',
      "Let's swap them.",
      file=sys.stderr)`

![image](https://github.com/user-attachments/assets/4d2932de-8e0f-4f97-b9d9-572eaa9b9d9f)


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


More information about the llvm-commits mailing list