[TargetLowering] Simplify the interface of expandABS. NFC
authorCraig Topper <craig.topper@sifive.com>
Fri, 22 Oct 2021 17:19:57 +0000 (10:19 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 22 Oct 2021 17:22:23 +0000 (10:22 -0700)
commit04c184bba7d7f3827dd12cdbdd734f8aabb99e86
treec16d062e9dd8b7859db2d9d12b73b3bdf604247d
parent0f12cf7ebaaf9f2a52be3baef7d25562a5ac15cb
[TargetLowering] Simplify the interface of expandABS. NFC

Instead of returning a bool to indicate success and a separate
SDValue, return the SDValue and have the callers check if it is
null.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D112331
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp