[PATCH] D111153: [SLP]Detect reused scalars in all possible gathers for better vectorization cost.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 5 07:15:42 PDT 2021
ABataev created this revision.
ABataev added reviewers: RKSimon, spatel, dtemirbulatov, anton-afanasyev.
Herald added a subscriber: hiraditya.
ABataev requested review of this revision.
Herald added a project: LLVM.
Some initially gathered nodes missed the check for the reused scalars,
which leads to high gather cost. Such nodes still can be represented as
m gathers + shuffle instead of n gathers, where m < n.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111153
Files:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/commutativity.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111153.377230.patch
Type: text/x-patch
Size: 9084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211005/ad8b92ae/attachment.bin>
More information about the llvm-commits
mailing list