[llvm] 5b2c5e2 - [llvm-exegesis] Add pfm counters for Zen2 (znver2).
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 01:57:57 PST 2020
Author: Clement Courbet
Date: 2020-02-03T10:57:41+01:00
New Revision: 5b2c5e261f1e78527af58777a4e5f79b2a696cde
URL: https://github.com/llvm/llvm-project/commit/5b2c5e261f1e78527af58777a4e5f79b2a696cde
DIFF: https://github.com/llvm/llvm-project/commit/5b2c5e261f1e78527af58777a4e5f79b2a696cde.diff
LOG: [llvm-exegesis] Add pfm counters for Zen2 (znver2).
Summary: There are no counters for individual ports, but this is already
enough to find a lot of issues in the current model (upcoming patch).
Reviewers: dblaikie, gchatelet
Subscribers: hiraditya, tschuett, RKSimon, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D72032
Added:
Modified:
llvm/lib/Target/X86/X86PfmCounters.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86PfmCounters.td b/llvm/lib/Target/X86/X86PfmCounters.td
index 93238983afa2..833013fb69f3 100644
--- a/llvm/lib/Target/X86/X86PfmCounters.td
+++ b/llvm/lib/Target/X86/X86PfmCounters.td
@@ -223,3 +223,13 @@ def ZnVer1PfmCounters : ProcPfmCounters {
];
}
def : PfmCountersBinding<"znver1", ZnVer1PfmCounters>;
+
+def ZnVer2PfmCounters : ProcPfmCounters {
+ let CycleCounter = PfmCounter<"cycles_not_in_halt">;
+ let UopsCounter = PfmCounter<"retired_uops">;
+ let IssueCounters = [
+ PfmIssueCounter<"Zn2AGU", "ls_dispatch:ld_dispatch + ls_dispatch:store_dispatch">,
+ PfmIssueCounter<"Zn2Divider", "div_op_count">
+ ];
+}
+def : PfmCountersBinding<"znver2", ZnVer2PfmCounters>;
More information about the llvm-commits
mailing list