[all-commits] [llvm/llvm-project] 114b77: [CostModel][X86] Add CostKinds handling for add/su...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Sep 3 10:45:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 114b7762a99677c021d7cf461fbc7ca796d0b76d
      https://github.com/llvm/llvm-project/commit/114b7762a99677c021d7cf461fbc7ca796d0b76d
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-09-03 (Sat, 03 Sep 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/arith-int-codesize.ll
    M llvm/test/Analysis/CostModel/X86/arith-int-latency.ll
    M llvm/test/Analysis/CostModel/X86/arith-int-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/div-codesize.ll
    M llvm/test/Analysis/CostModel/X86/div-latency.ll
    M llvm/test/Analysis/CostModel/X86/div-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/rem-codesize.ll
    M llvm/test/Analysis/CostModel/X86/rem-latency.ll
    M llvm/test/Analysis/CostModel/X86/rem-sizelatency.ll

  Log Message:
  -----------
  [CostModel][X86] Add CostKinds handling for add/sub ops

This was achieved using the 'cost-tables vs llvm-mca' script D103695


  Commit: 444685de06e0e8257aa913b198e2a185ff8ba7f5
      https://github.com/llvm/llvm-project/commit/444685de06e0e8257aa913b198e2a185ff8ba7f5
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-09-03 (Sat, 03 Sep 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ScheduleZnver1.td
    M llvm/lib/Target/X86/X86ScheduleZnver2.td
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/arith-fix.ll
    M llvm/test/Analysis/CostModel/X86/arith-int.ll
    M llvm/test/Analysis/CostModel/X86/arith-overflow.ll
    M llvm/test/Analysis/CostModel/X86/mul.ll
    M llvm/test/Analysis/CostModel/X86/mul32.ll
    M llvm/test/Analysis/CostModel/X86/reduce-mul.ll
    M llvm/test/Analysis/CostModel/X86/rem.ll
    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-sse41.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-sse41.s

  Log Message:
  -----------
  [CostModel][X86] Adjust mul v4i32/v8i32 throughput cost

Based off the numbers from AMD SoG + Agner - vXi32 are both half-rate, and znver1 double-pumps the v8i32 op

We should have caught this earlier as many Intel models have half-rate pmulld already :-(


Compare: https://github.com/llvm/llvm-project/compare/75f05fccbbdd...444685de06e0


More information about the All-commits mailing list