[PATCH] D121940: [SLP] Support internal users of splat loads

Vasileios Porpodas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 11:46:08 PDT 2022


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

Until now we would only accept a broadcast load pattern if it is only used
by a single vector of instructions.
This patch relaxes this, and allows for the broadcast to have more than one
user vector, as long as all of its uses are internal to the SLP graph and
vectorized.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121940

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121940.416272.patch
Type: text/x-patch
Size: 7242 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220317/5a26d74a/attachment.bin>


More information about the llvm-commits mailing list