[all-commits] [llvm/llvm-project] eee993: [AArch64][SVE] Fold predicate into compare

Cullen Rhodes via All-commits all-commits at lists.llvm.org
Mon Jan 10 02:53:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eee993ae4cc77a00681141b044b20ebd06d2aad2
      https://github.com/llvm/llvm-project/commit/eee993ae4cc77a00681141b044b20ebd06d2aad2
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/SVEInstrFormats.td
    M llvm/test/CodeGen/AArch64/sve-intrinsics-int-compares.ll

  Log Message:
  -----------
  [AArch64][SVE] Fold predicate into compare

Codegen of added testcase before this patch:

  ptrue   p0.s
  cmpgt   p1.s, p0/z, z0.s, z1.s
  cmpge   p2.s, p0/z, z2.s, z1.s
  and     p0.b, p0/z, p1.b, p2.b
  ret

Patterns originally authored by Will Lovett.

Reviewed By: david-arm

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




More information about the All-commits mailing list