[PATCH] D65892: [X86] Improve cost model for subvector extraction of less than 128-bit vectors

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 10:15:39 PDT 2019


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Now that we're using widening legalization. We need to improve our extract_subvector cost model for these types. This patch begins by modeling these as a subvector extract followed by a permute. I've left FIXMEs in the code for future improvements.


https://reviews.llvm.org/D65892

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65892.213937.patch
Type: text/x-patch
Size: 118397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190807/9453e185/attachment.bin>


More information about the llvm-commits mailing list