[all-commits] [llvm/llvm-project] 6ef6b2: [AArch64][SVE] Add more intrinsics in 'isZeroingIn...

Allen via All-commits all-commits at lists.llvm.org
Mon Jan 16 17:57:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ef6b2b5162ef48a63fb2697d77cffa6d7b1f7e7
      https://github.com/llvm/llvm-project/commit/6ef6b2b5162ef48a63fb2697d77cffa6d7b1f7e7
  Author: chendewen <chendewen3 at huawei.com>
  Date:   2023-01-17 (Tue, 17 Jan 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    A llvm/test/CodeGen/AArch64/sve2-intrinsics-reinterpret.ll

  Log Message:
  -----------
  [AArch64][SVE] Add more intrinsics in 'isZeroingInactiveLanes'.

    The REINTERPRET_CAST operation generates redundant and and ptrue instructions.
    For some instructions, this is redundant, because its inactive lanes are zeroed by construction.
    For example. Codegen before:
    ```
    facgt p2.d, p0/z, z4.d, z1.d
    ptrue p1.d
    and p1.b, p2/z, p2.b, p1.b
    ```
    After:
    ```
    facgt p1.d, p0/z, z4.d, z1.d
    ```
    ref: https://reviews.llvm.org/D129851

    Reviewed By:sdesmalen

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




More information about the All-commits mailing list