[PATCH] D113478: [X86][Costmodel] `getReplicationShuffleCost()`: implement cost model for 16 bit-wide elements with AVX512BW

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 9 03:40:18 PST 2021


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

BWI introduced VPERMW, so cost-model i16 replication shuffle using it.
Note that we can still model i16 replication shufflle without BWI,
by promoting to i32. That will be done in follow-ups.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113478

Files:
  llvm/lib/Target/X86/X86TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/X86/shuffle-replication-i16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113478.385759.patch
Type: text/x-patch
Size: 148885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211109/cfe3ff5a/attachment-0001.bin>


More information about the llvm-commits mailing list