[all-commits] [llvm/llvm-project] 21df50: [DAG][ARM][AArch64] Transform max(a, b) - min(a, b) ...

David Green via All-commits all-commits at lists.llvm.org
Wed Jan 18 03:44:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21df504399c27e904b7ad2abd270ae21582a1fb2
      https://github.com/llvm/llvm-project/commit/21df504399c27e904b7ad2abd270ae21582a1fb2
  Author: David Green <david.green at arm.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/neon-abd.ll

  Log Message:
  -----------
  [DAG][ARM][AArch64] Transform max(a,b) - min(a,b) -> abd(a,b)

This adds both signed and unsigned transforms for
max(a, b) - min(a, b) -> abd(a, b).

unsigned: https://alive2.llvm.org/ce/z/RF4jGQ
signed: https://alive2.llvm.org/ce/z/Cjr2zE

Fixes: #59894

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




More information about the All-commits mailing list