[all-commits] [llvm/llvm-project] 12c629: [CostModel][X86] Add shuffle costs for some common...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Apr 9 11:58:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 12c629ec6c590ad71f3707735df5931dfb6a2496
      https://github.com/llvm/llvm-project/commit/12c629ec6c590ad71f3707735df5931dfb6a2496
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-04-09 (Thu, 09 Apr 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/shuffle-broadcast.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-insert_subvector.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-reverse.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-single-src.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-transpose.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-two-src.ll

  Log Message:
  -----------
  [CostModel][X86] Add shuffle costs for some common sub-128bit vectors

v2i8/v4i8/v8i8 + v2i16/v4i16 all show up in vectorizer code and by just using the legalized types (v16i8/v8i16) we're highly exaggerating the actual cost of the shuffle.




More information about the All-commits mailing list