[PATCH] D140499: [SLP]Use ShuffleInstructionBuilder for vector shrinking.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 13:54:17 PST 2022


ABataev created this revision.
ABataev added reviewers: RKSimon, vdmitrie.
Herald added subscribers: vporpo, hiraditya.
Herald added a project: All.
ABataev requested review of this revision.
Herald added a subscriber: pcwang-thead.
Herald added a project: LLVM.

We can use ShuffleInstructionBuilder now for shrinking shuffle emission.
It allows to remove extra shuffle from the emitted code and reuse
original vector.

Part of D110978 <https://reviews.llvm.org/D110978>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140499

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/shrink_after_reorder.ll
  llvm/test/Transforms/SLPVectorizer/X86/shrink_after_reorder2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140499.484669.patch
Type: text/x-patch
Size: 7921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221221/5a72b468/attachment.bin>


More information about the llvm-commits mailing list