[all-commits] [llvm/llvm-project] 1da4d5: [AArch64][SVE] Add hadd and rhadd support

David Green via All-commits all-commits at lists.llvm.org
Wed Dec 14 01:25:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1da4d5aafad74a3d9a3b893335249c9e5b4a7ab9
      https://github.com/llvm/llvm-project/commit/1da4d5aafad74a3d9a3b893335249c9e5b4a7ab9
  Author: David Green <david.green at arm.com>
  Date:   2022-12-14 (Wed, 14 Dec 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.h
    M llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
    M llvm/test/CodeGen/AArch64/sve2-hadd.ll

  Log Message:
  -----------
  [AArch64][SVE] Add hadd and rhadd support

This adds basic HADD and RHADD support for SVE, by marking the AVGFLOOR
and AVGCEIL as custom and converting those to HADD_PRED/RHADD_PRED
AArch64 nodes. Both the existing intrinsics and the _PRED nodes are then
lowered to the _ZPmZ instructions.

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




More information about the All-commits mailing list