[PATCH] D109831: [SLP]Unify vectorization of PHI and store nodes with improved tiny tree vectorization.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 15 08:26:13 PDT 2021
ABataev created this revision.
ABataev added reviewers: RKSimon, spatel, anton-afanasyev, dtemirbulatov.
Herald added a subscriber: hiraditya.
ABataev requested review of this revision.
Herald added a project: LLVM.
Vectorization of PHIs and stores very similar, it might be beneficial to
try to revectorize stores (like PHIs) if the total number of stores with
the same/alternate opcode is less than the vector size but number of
stores with the same type is larger than the vector size. Also, need to
detect resuses before building gather nodes, it may be profitable to
do gather+shuffle rather than just do simple gather if some values are
duplicated.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109831
Files:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/commutativity.ll
llvm/test/Transforms/SLPVectorizer/X86/tiny-tree.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109831.372714.patch
Type: text/x-patch
Size: 25085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210915/2b8e6583/attachment.bin>
More information about the llvm-commits
mailing list