[PATCH] D126379: [SLP]Do not try to generate ScatterVectorize if it will be scalarized.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 07:23:51 PDT 2022


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

SLP should build ScatterVectorize nodes only if they actually end up
with masked gather rather than with scalarization. In the second
scenario better to build a gather node.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126379

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/pr47623.ll
  llvm/test/Transforms/SLPVectorizer/X86/pr47629-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/pr47629.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126379.431986.patch
Type: text/x-patch
Size: 28505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220525/726138de/attachment.bin>


More information about the llvm-commits mailing list