Skip to content

Commit 1f9ea2d

Browse files
ganeshgittru
authored andcommitted
[X86] AMD Genoa (znver4) Scheduler model update
(cherry picked from commit ffdd5a3)
1 parent 0b41062 commit 1f9ea2d

File tree

74 files changed

+34544
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+34544
-2
lines changed

llvm/lib/Target/X86/X86.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ include "X86ScheduleSLM.td"
695695
include "X86ScheduleZnver1.td"
696696
include "X86ScheduleZnver2.td"
697697
include "X86ScheduleZnver3.td"
698+
include "X86ScheduleZnver4.td"
698699
include "X86ScheduleBdVer2.td"
699700
include "X86ScheduleBtVer2.td"
700701
include "X86SchedSkylakeClient.td"
@@ -1627,7 +1628,7 @@ def : ProcModel<"znver2", Znver2Model, ProcessorFeatures.ZN2Features,
16271628
ProcessorFeatures.ZN2Tuning>;
16281629
def : ProcModel<"znver3", Znver3Model, ProcessorFeatures.ZN3Features,
16291630
ProcessorFeatures.ZN3Tuning>;
1630-
def : Proc<"znver4",ProcessorFeatures.ZN4Features,
1631+
def : ProcModel<"znver4", Znver4Model, ProcessorFeatures.ZN4Features,
16311632
ProcessorFeatures.ZN4Tuning>;
16321633

16331634
def : Proc<"geode", [FeatureX87, FeatureCX8, Feature3DNowA],

llvm/lib/Target/X86/X86PfmCounters.td

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,17 @@ def ZnVer3PfmCounters : ProcPfmCounters {
290290
];
291291
}
292292
def : PfmCountersBinding<"znver3", ZnVer3PfmCounters>;
293-
def : PfmCountersBinding<"znver4", ZnVer3PfmCounters>;
293+
294+
def ZnVer4PfmCounters : ProcPfmCounters {
295+
let CycleCounter = PfmCounter<"cycles_not_in_halt">;
296+
let UopsCounter = PfmCounter<"retired_ops">;
297+
let IssueCounters = [
298+
PfmIssueCounter<"Zn4Int", "ops_type_dispatched_from_decoder:int_disp_retire_mode">,
299+
PfmIssueCounter<"Zn4FPU", "ops_type_dispatched_from_decoder:fp_disp_retire_mode">,
300+
PfmIssueCounter<"Zn4Load", "ls_dispatch:ld_dispatch">,
301+
PfmIssueCounter<"Zn4Store", "ls_dispatch:store_dispatch">,
302+
PfmIssueCounter<"Zn4Divider", "div_op_count">,
303+
PfmIssueCounter<"Zn4AGU", "ls_dispatch:ld_st_dispatch + ls_dispatch:ld_dispatch + ls_dispatch:store_dispatch">
304+
];
305+
}
306+
def : PfmCountersBinding<"znver4", ZnVer4PfmCounters>;

0 commit comments

Comments
 (0)