[PATCH] D90445: [SLP] Make SLPVectorizer to use `llvm.masked.gather` intrinsic

Anton Afanasyev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 00:40:03 PDT 2020


anton-afanasyev created this revision.
anton-afanasyev added reviewers: RKSimon, dtemirbulatov.
Herald added subscribers: llvm-commits, pengfei, hiraditya, kristof.beyls.
Herald added a reviewer: rengolin.
Herald added a project: LLVM.
anton-afanasyev requested review of this revision.

For the scattered operands of load instructions it makes sense
to use gathering load intrinsic, which can lower to native instruction
for X86/AVX512 and ARM/SVE. This also enables building
vectorization tree with entries containing scattered operands.
The next step is to add scattered store.

Fixes PR47629


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90445

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/lookahead.ll
  llvm/test/Transforms/SLPVectorizer/X86/pr47629.ll
  llvm/test/Transforms/SLPVectorizer/X86/remark_not_all_parts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90445.301826.patch
Type: text/x-patch
Size: 15182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201030/d0ba0f3e/attachment.bin>


More information about the llvm-commits mailing list