[all-commits] [llvm/llvm-project] c1b5e3: [CostModel][X86] Add CostKinds handling for fcmp ops

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Sep 6 02:35:23 PDT 2022


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

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/fcmp-codesize.ll
    M llvm/test/Analysis/CostModel/X86/fcmp-latency.ll
    M llvm/test/Analysis/CostModel/X86/fcmp-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/fcmp.ll
    M llvm/test/Analysis/CostModel/X86/fptoi_sat.ll

  Log Message:
  -----------
  [CostModel][X86] Add CostKinds handling for fcmp ops

This was achieved with an updated version of the 'cost-tables vs llvm-mca' script D103695 (although it still struggles with avx512 predicate numbers which had to be done manually)

SSE numbers are still too low for FCMP_ONE/FCMP_UEQ cases which expand to a more complex sequence than the existing 'ExtraCost' system can manage.




More information about the All-commits mailing list