[all-commits] [llvm/llvm-project] b6426d: [CostModel][TTI] Replace BAD_ICMP_PREDICATE with I...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Oct 8 05:00:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6426d52111cafdbd9114ead3855b861de0173d6
      https://github.com/llvm/llvm-project/commit/b6426d52111cafdbd9114ead3855b861de0173d6
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/X86/arith-sminmax.ll
    M llvm/test/Analysis/CostModel/X86/arith-uminmax.ll
    M llvm/test/Analysis/CostModel/X86/intrinsic-cost-kinds.ll

  Log Message:
  -----------
  [CostModel][TTI] Replace BAD_ICMP_PREDICATE with ICMP_SGT/UGT for generic abs/min/max cost expansion

Split off ABS cost handling from MIN/MAX and use explicit predicates for each

Our generic expansion of ABS doesn't use NEG+CMP+SELECT any more (its now ASHR+ADD+XOR) so this needs to be updated.




More information about the All-commits mailing list