[PATCH] D92572: [CodeGenPrepare] Update optimizeGatherScatterInst for scalable vectors.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 04:45:34 PST 2020


paulwalker-arm created this revision.
Herald added subscribers: llvm-commits, pengfei, hiraditya.
Herald added a project: LLVM.
paulwalker-arm requested review of this revision.

optimizeGatherScatterInst does nothing specific to fixed length vectors
but uses FixedVectorType to extract the number of elements.  This patch
simply updates the code to use VectorType and getElementCount instead.

For testing I just copied Transforms/CodeGenPrepare/X86/gather-scatter-opt.ll
replacing `<4 x ` with `<vscale x 4`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92572

Files:
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/test/Transforms/CodeGenPrepare/AArch64/gather-scatter-opt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92572.309229.patch
Type: text/x-patch
Size: 10769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201203/4e00216d/attachment.bin>


More information about the llvm-commits mailing list