[all-commits] [llvm/llvm-project] 096795: [CostModel] Handle all cost kinds in getCmpSelInst...

David Green via All-commits all-commits at lists.llvm.org
Tue Jul 15 10:09:13 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0967957d7a94e1b5c749c6e963bdca25f3c6d749
      https://github.com/llvm/llvm-project/commit/0967957d7a94e1b5c749c6e963bdca25f3c6d749
  Author: David Green <david.green at arm.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/test/Analysis/CostModel/AArch64/arith-overflow.ll
    M llvm/test/Analysis/CostModel/AArch64/cmp.ll
    M llvm/test/Analysis/CostModel/AArch64/fcmp.ll
    M llvm/test/Analysis/CostModel/AArch64/fshl.ll
    M llvm/test/Analysis/CostModel/AArch64/fshr.ll
    M llvm/test/Analysis/CostModel/AArch64/sve-cmpsel.ll
    M llvm/test/Analysis/CostModel/AArch64/sve-fcmp.ll
    M llvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll
    M llvm/test/Analysis/CostModel/AArch64/vector-select.ll
    M llvm/test/Analysis/CostModel/AMDGPU/reduce-and.ll
    M llvm/test/Analysis/CostModel/AMDGPU/reduce-or.ll
    M llvm/test/Analysis/CostModel/ARM/arith-overflow.ll
    M llvm/test/Analysis/CostModel/ARM/arith-ssat.ll
    M llvm/test/Analysis/CostModel/ARM/arith-usat.ll
    M llvm/test/Analysis/CostModel/ARM/cmps.ll
    M llvm/test/Analysis/CostModel/ARM/intrinsic-cost-kinds.ll
    M llvm/test/Analysis/CostModel/ARM/mve-abs.ll
    M llvm/test/Analysis/CostModel/ARM/mve-minmax.ll
    M llvm/test/Analysis/CostModel/ARM/select.ll
    M llvm/test/CodeGen/Thumb2/mve-pred-vselect.ll
    M llvm/test/CodeGen/X86/div-rem-pair-recomposition-unsigned.ll
    M llvm/test/CodeGen/X86/test-shrink-bug.ll
    M llvm/test/Transforms/SimplifyCFG/ARM/phi-eliminate.ll

  Log Message:
  -----------
  [CostModel] Handle all cost kinds in getCmpSelInstrCost (#148233)

Currently we always produce a cost of 1 for all CostKinds that are not
RecipThroughput, which can underestimate the cost if the type has a
higher legalization cost (like larger vectors). This relaxes it to cover
all cost kinds.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list