[PATCH] D91937: [ISel] Port AArch64 SABD and UABD to DAGCombine

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 22 13:42:00 PST 2020


dmgreen created this revision.
dmgreen added reviewers: RKSimon, efriedma, mivnay, SjoerdMeijer, samtebbs.
Herald added subscribers: ecnelises, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
dmgreen requested review of this revision.

This ports the AArch64 SABD and USBD over to DAG Combine, where they can be used by more backends (notably MVE in a follow-up patch). The matching code has changed very little, just to handle legal operations and types differently. It selects from (ABS (SUB (EXTEND a), (EXTEND b))), producing a ubds/abdu which is zexted to the original type.


https://reviews.llvm.org/D91937

Files:
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/include/llvm/Target/TargetSelectionDAG.td
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64InstrInfo.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91937.306940.patch
Type: text/x-patch
Size: 10056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201122/24e69aef/attachment.bin>


More information about the llvm-commits mailing list