[PATCH] D119536: [SLP] Extract intermediate insertelement for external use

Anton Afanasyev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 11 02:58:57 PST 2022


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

If insertelement, extracted from vectorized bundle, is intermediate,
i.e. not the last one, then shuffle vectorized value with original
vector to get correct value for external use.

Fixes PR52275 (#51617)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119536

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119536.407821.patch
Type: text/x-patch
Size: 14441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220211/29f72bc6/attachment.bin>


More information about the llvm-commits mailing list