[all-commits] [llvm/llvm-project] 170947: [SVE][CodeGen] Lower scalable masked scatters

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Wed Nov 11 03:56:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 170947a5def3a316ac0a11c334af7b3d25f929e1
      https://github.com/llvm/llvm-project/commit/170947a5def3a316ac0a11c334af7b3d25f929e1
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2020-11-11 (Wed, 11 Nov 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.h
    M llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
    A llvm/test/CodeGen/AArch64/sve-masked-scatter-32b-scaled.ll
    A llvm/test/CodeGen/AArch64/sve-masked-scatter-32b-unscaled.ll
    A llvm/test/CodeGen/AArch64/sve-masked-scatter-64b-scaled.ll
    A llvm/test/CodeGen/AArch64/sve-masked-scatter-64b-unscaled.ll

  Log Message:
  -----------
  [SVE][CodeGen] Lower scalable masked scatters

Lowers the llvm.masked.scatter intrinsics (scalar plus vector addressing mode only)

Changes included in this patch:
 - Custom lowering for MSCATTER, which chooses the appropriate scatter store opcode to use.
    Floating-point scatters are cast to integer, with patterns added to match FP reinterpret_casts.
 - Added the getCanonicalIndexType function to convert redundant addressing
   modes (e.g. scaling is redundant when accessing bytes)
 - Tests with 32 & 64-bit scaled & unscaled offsets

Reviewed By: sdesmalen

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




More information about the All-commits mailing list