[PATCH] D131894: [SLP]Try to vectorize single store operands.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 08:05:34 PDT 2022


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

Currently, we try to vectorize values, feeding into stores, only if
slp-vectorize-hor-store option is provided. We can safely enable
vectorization of the value operand of a single store in the basic block,
if the operand value is used only in store.
It should enable extra vectorization and should not increase compile
time significantly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131894

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/extractelement.ll
  llvm/test/Transforms/SLPVectorizer/X86/horizontal.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131894.452673.patch
Type: text/x-patch
Size: 72412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220815/fc5bdb38/attachment.bin>


More information about the llvm-commits mailing list