[PATCH] D116312: [SLP]Improve isGatherShuffledEntry to handles shuffles between different length vectors.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 27 07:43:36 PST 2021


ABataev created this revision.
ABataev added reviewers: RKSimon, anton-afanasyev, dtemirbulatov.
Herald added a subscriber: hiraditya.
ABataev requested review of this revision.
Herald added a project: LLVM.

Originally isGatherShuffledEntry supports shuffles between 2 input
vectors of the same size. Actually, we can support the shuffles between
vectors of 2 different sizes. One of them (or both, for variable length
vector) just must be resized to match the sizes. Improves cost and the
vectorization itself.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116312

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/shuffled-gathers-diff-size.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116312.396307.patch
Type: text/x-patch
Size: 10499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211227/38f17df3/attachment.bin>


More information about the llvm-commits mailing list