[all-commits] [llvm/llvm-project] da570e: [DAG] Match select(icmp(x, y), sub(x, y), sub(y, x)) ->...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Mar 14 08:10:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da570ef1b4f856603970ecb14299947fb6cd678a
      https://github.com/llvm/llvm-project/commit/da570ef1b4f856603970ecb14299947fb6cd678a
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.h
    M llvm/test/CodeGen/AArch64/abd-combine.ll
    M llvm/test/CodeGen/PowerPC/ppc64-P9-vabsd.ll
    M llvm/test/CodeGen/X86/abds-vector-128.ll
    M llvm/test/CodeGen/X86/abds-vector-256.ll
    M llvm/test/CodeGen/X86/abds-vector-512.ll
    M llvm/test/CodeGen/X86/abdu-vector-128.ll
    M llvm/test/CodeGen/X86/abdu-vector-256.ll
    M llvm/test/CodeGen/X86/abdu-vector-512.ll

  Log Message:
  -----------
  [DAG] Match select(icmp(x,y),sub(x,y),sub(y,x)) -> abd(x,y) patterns

Pulled out of PowerPC, and added ABDS support as well (hence the additional v4i32 PPC matches)

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




More information about the All-commits mailing list