[AArch64] lower abs intrinsic to new ABS instruction in GIsel
authorTies Stuij <ties.stuij@arm.com>
Tue, 10 Jan 2023 11:12:19 +0000 (11:12 +0000)
committerTies Stuij <ties@stuij.se>
Tue, 10 Jan 2023 11:46:28 +0000 (11:46 +0000)
commit88b3127ed1faade1d51770e65e554d1273ed1039
tree50f9387076f7cb9a7e9b59a49881138251d0c7d6
parent39d1c5897a5e0f3c6c20249decd802a6dcbc8477
[AArch64] lower abs intrinsic to new ABS instruction in GIsel

When feature CSSC is available, the abs intrinsic should map to the
new scalar ABS instruction when using GlobalIsel

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

Reviewed By: aemerson

Differential Revision: https://reviews.llvm.org/D139419
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-abs.mir