[PATCH] D131965: [SLP]Delay vectorization of postponable values for instructions with no users.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 06:46:42 PDT 2022


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

SLP vectorizer tries to find the reductions starting the operands of the
instructions with no-users/void returns/etc. But such operands can be
postponable instructions, like Cmp, InsertElement or InsertValue. Such
operands still must be postponed, vectorizer should not try to vectorize
them immediately.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131965

Files:
  llvm/include/llvm/Transforms/Vectorize/SLPVectorizer.h
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector-inseltpoison.ll
  llvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll
  llvm/test/Transforms/SLPVectorizer/X86/insertelement-postpone.ll
  llvm/test/Transforms/SLPVectorizer/X86/pr48879-sroa.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131965.452989.patch
Type: text/x-patch
Size: 23177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220816/1c0243c0/attachment.bin>


More information about the llvm-commits mailing list