[PATCH] D127219: [SLP]Extend vectorization for scatter vectorize nodes.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 10:43:58 PDT 2022


ABataev added a comment.

In D127219#3567402 <https://reviews.llvm.org/D127219#3567402>, @vdmitrie wrote:

> LGTM
>
> BTW. One interesting thing I noticed from the test case.
> We might want to special case this:
>
>   i32 *%addr
>   %gep3 = getelementptr inbounds i32, i32* %addr, i32 2
>   %gep5 = getelementptr inbounds i32, i32* %addr, i32 4
>
> ...
>
>   %gep15 = getelementptr inbounds i32, i32* %addr, i32 14
>
> to be vectorized as if VL0 was "getelementptr inbounds i32, i32* %addr, i32 0"
> Now we end up gathering this node.

Yep, thought about something like this, need to improve the analysis and emit an extra shuffle.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127219/new/

https://reviews.llvm.org/D127219



More information about the llvm-commits mailing list