OSDN Git Service

[X86] Improve pfm counter coverage for llvm-exegesis
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 7 Dec 2018 17:48:40 +0000 (17:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 7 Dec 2018 17:48:40 +0000 (17:48 +0000)
commit6436c9dd32f107fb598d63ca3e3d5b462a73dda2
tree62aad46832fda2672e1209fa73dfc596b9fd05db
parent8edf4fa92d71b94aa33387ec841d3ace530df83c
[X86] Improve pfm counter coverage for llvm-exegesis

This patch attempts to improve pfm perf counter coverage for all the x86 CPUs that libpfm4 supports.

Intel/AMD CPU families tend to share names for cycle/uops counters so even if they don't have a scheduler model yet they can at least use the default values (checked against the libpfm4 source code).

The remaining CPUs (where their port/pipe resource counters are known) I've tried to add to the existing model mappings.

These are untested but don't represent a regression to current llvm-exegesis behaviour for these CPUs.

Differential Revision: https://reviews.llvm.org/D55432

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348617 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86PfmCounters.td