[PATCH] D100698: [X86][CostModel] X86TTIImpl::getShuffleCost(): subvector insertions are cheap

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 17 03:43:39 PDT 2021


lebedev.ri created this revision.
lebedev.ri added reviewers: RKSimon, ABataev.
lebedev.ri added a project: LLVM.
Herald added subscribers: pengfei, hiraditya.
lebedev.ri requested review of this revision.

This is similar to the subvector extractions,
except that the 0'th subvector isn't free to insert,
because we generally don't know whether or not
the upper elements need to be preserved: 
https://godbolt.org/z/rsxP5W4sW

This is needed to avoid regressions in D100684 <https://reviews.llvm.org/D100684>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100698

Files:
  llvm/lib/Target/X86/X86TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost-inseltpoison.ll
  llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost.ll
  llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100698.338286.patch
Type: text/x-patch
Size: 69737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210417/6be2eb9d/attachment.bin>


More information about the llvm-commits mailing list