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

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 7 07:43:03 PDT 2021


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

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/X86/arith-ssat.ll

  Log Message:
  -----------
  [CostModel][TTI] Replace BAD_ICMP_PREDICATE with ICMP_SGT for generic sadd/ssub sat cost expansion

The comparison always checks for negative values so know the icmp predicate will be ICMP_SGT




More information about the All-commits mailing list