[PATCH] D72032: [llvm-exegesis] Add pfm counters for Zen2 (znver2).
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 02:45:35 PST 2020
courbet updated this revision to Diff 239522.
courbet added a comment.
Rebase after D66088 <https://reviews.llvm.org/D66088>.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72032/new/
https://reviews.llvm.org/D72032
Files:
llvm/lib/Target/X86/X86PfmCounters.td
Index: llvm/lib/Target/X86/X86PfmCounters.td
===================================================================
--- llvm/lib/Target/X86/X86PfmCounters.td
+++ llvm/lib/Target/X86/X86PfmCounters.td
@@ -223,3 +223,15 @@
];
}
def : PfmCountersBinding<"znver1", ZnVer1PfmCounters>;
+
+def ZnVer2PfmCounters : ProcPfmCounters {
+ let CycleCounter = PfmCounter<"cycles_not_in_halt">;
+ let UopsCounter = PfmCounter<"retired_uops">;
+ let IssueCounters = [
+ // FIXME: In the current model, all three AGUs are considered the same,
+ // but only two are supposed to be able to compute load addresses.
+ PfmIssueCounter<"Zn2AGU", "ls_dispatch:ld_dispatch + ls_dispatch:store_dispatch">,
+ PfmIssueCounter<"ZnDivider", "div_op_count">
+ ];
+}
+def : PfmCountersBinding<"znver2", ZnVer2PfmCounters>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72032.239522.patch
Type: text/x-patch
Size: 810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/88f9e197/attachment.bin>
More information about the llvm-commits
mailing list