[PATCH] D123684: [Scalarizer] Handle extractelement returning vector pointer (PR54469)
Dawid Jurczak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 13 08:43:40 PDT 2022
yurai007 created this revision.
yurai007 added reviewers: nikic, bjope, lebedev.ri, xbolva00, Benoit.
Herald added a subscriber: hiraditya.
Herald added a project: All.
yurai007 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch learn ScalarizerVisitor how to scalarize cases like
load(..., extractelement(...)) and store(..., extractelement(...)) where extractelement returns vector pointer.
We avoid "Inconsistent vector sizes" failure by careful choice of instructions stored in
Scattered and Gathered collections when one of above cases is detected.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123684
Files:
llvm/lib/Transforms/Scalar/Scalarizer.cpp
llvm/test/Transforms/Scalarizer/constant-extractelement.ll
llvm/test/Transforms/Scalarizer/variable-extractelement.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123684.422527.patch
Type: text/x-patch
Size: 30786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220413/e53b21ed/attachment.bin>
More information about the llvm-commits
mailing list