[all-commits] [llvm/llvm-project] 0767e4: [CostModel][X86] Adjust bitreverse/ctpop/ctlz/cttz...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Sep 15 05:17:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0767e43d87453e76e418cabb2b96fdacd1a4981c
      https://github.com/llvm/llvm-project/commit/0767e43d87453e76e418cabb2b96fdacd1a4981c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-09-15 (Wed, 15 Sep 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/bitreverse.ll
    M llvm/test/Analysis/CostModel/X86/ctlz.ll
    M llvm/test/Analysis/CostModel/X86/ctpop.ll
    M llvm/test/Analysis/CostModel/X86/cttz.ll
    M llvm/test/Transforms/SLPVectorizer/X86/ctlz.ll
    M llvm/test/Transforms/SLPVectorizer/X86/ctpop.ll
    M llvm/test/Transforms/SLPVectorizer/X86/cttz.ll

  Log Message:
  -----------
  [CostModel][X86] Adjust bitreverse/ctpop/ctlz/cttz AVX2+ costs based on llvm-mca reports

Based off the worse case numbers generated by D103695, the AVX2/512 bit reversing/counting costs were higher than necessary (based off instruction counts instead of actual throughput).




More information about the All-commits mailing list