[PATCH] D138812: [AArch64] lower abs intrinsic to new ABS instruction in SelDag

Ties Stuij via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 06:34:07 PST 2022


stuij created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
stuij requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When feature CSSC is available, the SelectionDag abs intrinsic should map to the
new scalar ABS instruction.

Additionally, the SIMDTwoScalarD tablegen defm includes a pattern match for
scalar i64, which we don't want to use when CSSC is enabled.

spec:
https://developer.arm.com/documentation/ddi0602/2022-09/Base-Instructions/ABS--Absolute-value-


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138812

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64InstrFormats.td
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/iabs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138812.478222.patch
Type: text/x-patch
Size: 7312 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221128/148ac114/attachment.bin>


More information about the llvm-commits mailing list