[all-commits] [llvm/llvm-project] 6d35bd: [CodeGenPrepare] Update optimizeGatherScatterInst ...

paulwalker-arm via All-commits all-commits at lists.llvm.org
Tue Dec 15 03:55:59 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d35bd1d48e9fdde38483e6b22a900daa7e3d46a
      https://github.com/llvm/llvm-project/commit/6d35bd1d48e9fdde38483e6b22a900daa7e3d46a
  Author: Paul Walker <paul.walker at arm.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    A llvm/test/Transforms/CodeGenPrepare/AArch64/gather-scatter-opt.ll

  Log Message:
  -----------
  [CodeGenPrepare] Update optimizeGatherScatterInst for scalable vectors.

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`.

Differential Revision: https://reviews.llvm.org/D92572




More information about the All-commits mailing list