[all-commits] [llvm/llvm-project] 168a44: [CostModel][X86] Improve extract/insert element co...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Feb 27 07:54:31 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 168a44a70eb562f9a88a2e25b6ffd9cca3b25052
      https://github.com/llvm/llvm-project/commit/168a44a70eb562f9a88a2e25b6ffd9cca3b25052
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/arith-fp.ll
    M llvm/test/Analysis/CostModel/X86/extend.ll
    M llvm/test/Analysis/CostModel/X86/fptosi.ll
    M llvm/test/Analysis/CostModel/X86/fptoui.ll
    M llvm/test/Analysis/CostModel/X86/fround.ll
    M llvm/test/Analysis/CostModel/X86/intrinsic-cost.ll
    M llvm/test/Analysis/CostModel/X86/load_store.ll
    M llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-extract_subvector.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-insert_subvector.ll
    M llvm/test/Analysis/CostModel/X86/sitofp.ll
    M llvm/test/Analysis/CostModel/X86/vector-extract.ll
    M llvm/test/Analysis/CostModel/X86/vector-insert.ll
    M llvm/test/Analysis/CostModel/X86/vshift-ashr-cost.ll
    M llvm/test/Analysis/CostModel/X86/vshift-lshr-cost.ll
    M llvm/test/Analysis/CostModel/X86/vshift-shl-cost.ll
    M llvm/test/Transforms/LoopVectorize/X86/interleaving.ll
    M llvm/test/Transforms/LoopVectorize/X86/strided_load_cost.ll
    M llvm/test/Transforms/SLPVectorizer/X86/PR35865.ll
    M llvm/test/Transforms/SLPVectorizer/X86/alternate-int.ll
    M llvm/test/Transforms/SLPVectorizer/X86/commutativity.ll
    M llvm/test/Transforms/SLPVectorizer/X86/hadd.ll
    M llvm/test/Transforms/SLPVectorizer/X86/hsub.ll
    M llvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll
    M llvm/test/Transforms/SLPVectorizer/X86/minimum-sizes.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr35497.ll
    M llvm/test/Transforms/SLPVectorizer/X86/remark_horcost.ll
    M llvm/test/Transforms/SLPVectorizer/X86/resched.ll
    M llvm/test/Transforms/SLPVectorizer/X86/sext.ll
    M llvm/test/Transforms/SLPVectorizer/X86/zext.ll

  Log Message:
  -----------
  [CostModel][X86] Improve extract/insert element costs (PR43605)

This tries to improve the accuracy of extract/insert element costs by accounting for subvector extraction/insertion for >128-bit vectors and the shuffling of elements to/from the 0'th index.

It also adds INSERTPS for f32 types and PINSR/PEXTR costs for integer types (at the moment we assume the same cost as MOVD/MOVQ - which isn't always true).

Differential Revision: https://reviews.llvm.org/D74976


  Commit: 080890a9f38ff63f9693b55b263dc433ba8bed7a
      https://github.com/llvm/llvm-project/commit/080890a9f38ff63f9693b55b263dc433ba8bed7a
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    A llvm/test/Transforms/InstCombine/pr14365.ll

  Log Message:
  -----------
  [InstCombine] Add PR14365 test cases + vector equivalents.


Compare: https://github.com/llvm/llvm-project/compare/965ba4291a6d...080890a9f38f


More information about the All-commits mailing list