[all-commits] [llvm/llvm-project] 6824cf: [X86] Set some more plausible latencies for horizo...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun May 8 07:49:09 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6824cf1ab7f16ba68270a5f23007c060e42ea6dc
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-05-08 (Sun, 08 May 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ScheduleZnver1.td
    M llvm/lib/Target/X86/X86ScheduleZnver2.td
    M llvm/test/tools/llvm-mca/X86/Znver1/resources-avx1.s
    M llvm/test/tools/llvm-mca/X86/Znver1/resources-avx2.s
    M llvm/test/tools/llvm-mca/X86/Znver1/resources-sse3.s
    M llvm/test/tools/llvm-mca/X86/Znver1/resources-ssse3.s
    M llvm/test/tools/llvm-mca/X86/Znver2/resources-avx1.s
    M llvm/test/tools/llvm-mca/X86/Znver2/resources-avx2.s
    M llvm/test/tools/llvm-mca/X86/Znver2/resources-sse3.s
    M llvm/test/tools/llvm-mca/X86/Znver2/resources-ssse3.s

  Log Message:
  [X86] Set some more plausible latencies for horizontal add/subs on znver1

These are all microcoded/multi-pipe nightmares on Ryzen, but we shouldn't just be using the WriteMicrocoded class which is for REALLY bad microcoded nightmares - instead use the same approximate latencies as znver2 (Agner and uops.info both suggest similar values) - and make sure we use the FPU defs for both

Fixes #53242

More information about the All-commits mailing list