[all-commits] [llvm/llvm-project] b147b8: [CodeGen] Add support for extracting elements of s...

david-arm via All-commits all-commits at lists.llvm.org
Thu May 28 23:50:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b147b88c8432cdc14a3238925dbfb8d55be32932
      https://github.com/llvm/llvm-project/commit/b147b88c8432cdc14a3238925dbfb8d55be32932
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-05-29 (Fri, 29 May 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
    A llvm/test/CodeGen/AArch64/sve-extract-element.ll
    M llvm/test/CodeGen/AArch64/sve-insert-element.ll

  Log Message:
  -----------
  [CodeGen] Add support for extracting elements of scalable vectors

I have tried to ensure that SelectionDAG and DAGCombiner do
sensible things for scalable vectors, and added support for a
limited number of simple folds. Codegen support for the vector
extract patterns have also been added to the AArch64 backend.

New vector extract tests have been added here:

  CodeGen/AArch64/sve-extract-element.ll

and I have also added new folds using inserts and extracts here:

  CodeGen/AArch64/sve-insert-element.ll

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




More information about the All-commits mailing list