[all-commits] [llvm/llvm-project] d90a42: [CostModel][X86] Add CTLZ_ZERO_UNDEF/CTTZ_ZERO_UND...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Sep 19 06:07:05 PDT 2022


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

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/ctlz.ll
    M llvm/test/Analysis/CostModel/X86/cttz.ll
    M llvm/test/Analysis/CostModel/X86/intrinsic-cost-kinds.ll
    M llvm/test/Transforms/SLPVectorizer/X86/ctlz.ll
    M llvm/test/Transforms/SLPVectorizer/X86/cttz.ll

  Log Message:
  -----------
  [CostModel][X86] Add CTLZ_ZERO_UNDEF/CTTZ_ZERO_UNDEF cost handling

Without LZCNT/BMI, the *_ZERO_UNDEF costs are cheaper as they can avoid the zero handling.




More information about the All-commits mailing list