[all-commits] [llvm/llvm-project] 55304d: [CostModel] getInstructionCost - improve estimatio...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Mar 7 02:46:50 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55304d0d907fb26c298b84447a85e3a987d0adbc
      https://github.com/llvm/llvm-project/commit/55304d0d907fb26c298b84447a85e3a987d0adbc
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
    M llvm/test/Analysis/CostModel/AMDGPU/shufflevector.ll
    M llvm/test/Analysis/CostModel/RISCV/shuffle-extract_subvector.ll
    M llvm/test/Analysis/CostModel/RISCV/shuffle-interleave.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-concat_subvector-codesize.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-concat_subvector-latency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-concat_subvector-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-concat_subvector.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-extract_subvector-codesize.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-extract_subvector-latency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-extract_subvector-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-extract_subvector.ll

  Log Message:
  -----------
  [CostModel] getInstructionCost - improve estimation of costs for length changing shuffles (#84156)

Fix gap in the cost estimation for length changing shuffles, by adjusting the shuffle mask and either widening the shuffle inputs or extracting the lower elements of the result.

A small step towards moving some of this implementation inside improveShuffleKindFromMask and/or target getShuffleCost handlers (and reduce the diffs in cost estimation depending on whether coming from a ShuffleVectorInst or the raw operands / mask components)



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