llvm-project/llvm/test/tools/llvm-mca
Roman Lebedev 2b93c9c16c
[X86] AMD Zen 3 Scheduler Model
Introduce basic schedule model for AMD Zen 3 CPU's, a.k.a `znver3`.

This is fully built from scratch, from llvm-mca measurements
and documented reference materials.
Nothing was copied from `znver2`/`znver1`.

I believe this is in a reasonable state of completion for inclusion,
probably better than D52779 `bdver2` was :)

Namely:
* uops are pretty spot-on (at least what llvm-mca can measure)
  {F16422596}
* latency is also pretty spot-on (at least what llvm-mca can measure)
  {F16422601}
* throughput is within reason
  {F16422607}

I haven't run much benchmarks with this,
however RawSpeed benchmarks says this is beneficial:
{F16603978}
{F16604029}

I'll call out the obvious problems there:
* i didn't really bother with X87 instructions
* i didn't really bother with obviously-microcoded/system instructions
* There are large discrepancy in throughput for `mr` and `rm` instructions.
  I'm not really sure if it's a modelling defect that needs to be fixed,
  or it's a defect of measurments.
* Pipe distributions are probably bad :)
  I can't do much here until AMD allows that to be fixed
  by documenting the appropriate counters and updating libpfm

That being said, as @RKSimon notes:
>>! In D94395#2647381, @RKSimon wrote:
> I'll mention again that all the znver* models appear to be very inaccurate wrt SIMD/FPU instructions <...>
so how much worse this could possibly be?!

Things that aren't there:
* Various tunings: zero idioms, etc. That is follow-ups.

Differential Revision: https://reviews.llvm.org/D94395
2021-05-01 22:08:13 +03:00
..
AArch64 [MCA] Add tests for IPC on Cortex-A55 2021-04-08 19:37:07 +03:00
AMDGPU [AMDGPU] Add TransVALU to gfx10 2021-04-20 15:34:43 +02:00
ARM [MCA] Fix CarryOver check in the DispatchStage (PR50174). 2021-04-30 14:26:46 +01:00
JSON/X86 [llvm-mca] Adding local lit config file for X86 targets 2021-01-22 09:52:57 -08:00
SystemZ [MCA] Show aggregate over Average Wait times for the whole snippet (PR43219) 2019-10-10 14:46:21 +00:00
X86 [X86] AMD Zen 3 Scheduler Model 2021-05-01 22:08:13 +03:00
invalid_input_file_name.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
lit.local.cfg