[PATCH] D141706: [DAG][ARM][AArch64] Transform max(a, b) - min(a,b) -> abd(a,b)
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 10:09:58 PST 2023
dmgreen created this revision.
dmgreen added reviewers: RKSimon, spatel, efriedma.
Herald added subscribers: StephenFan, ecnelises, hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.
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
https://reviews.llvm.org/D141706
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/neon-abd.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141706.489050.patch
Type: text/x-patch
Size: 4621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/764253b3/attachment.bin>
More information about the llvm-commits
mailing list