[PATCH] D135591: [SLP]Fix insertpoint of the extractellements instructions to avoid reshuffle crash.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 08:27:09 PDT 2022


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

Need to set the insertpoint for extractelement to point to the first
instruction in the node to avoid possible crash during external uses
combine  process. Without it we may endup with the incorrect
transformation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135591

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135591.466513.patch
Type: text/x-patch
Size: 4865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221010/648de32c/attachment.bin>


More information about the llvm-commits mailing list