[PATCH] D106273: [WIP] Improve code generation for vector_splice for Imm > 0

Caroline via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 06:40:48 PDT 2021


CarolineConcatto created this revision.
Herald added a subscriber: hiraditya.
CarolineConcatto requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch implements vector_splice in tablegen for all cases when the
Immediate is positive and lower than the known minimum value of
a scalable vector.
Vector_splice can be implemented using SVE instruction EXT.
For instance :

  @llvm.experimental.vector.splice(Vector_1, Vector_2, Imm)
  @llvm.experimental.vector.splice(<A,B,C,D>, <E,F,G,H>, 1) ==> <B, C, D, E>
      EXT  Vector_1, Vector_2, Imm              // Vector_1 = B, C, D + Vector_2 = E

Depends on D105633 <https://reviews.llvm.org/D105633>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106273

Files:
  llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/lib/Target/AArch64/SVEInstrFormats.td
  llvm/test/CodeGen/AArch64/named-vector-shuffles-sve.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106273.359773.patch
Type: text/x-patch
Size: 25547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210719/e6fbd62e/attachment-0001.bin>


More information about the llvm-commits mailing list