From: Nikita Popov Date: Sun, 13 Jan 2019 16:41:26 +0000 (+0000) Subject: [X86] Rename overly verbose method; NFC X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0400e504459fa4a1583c46411f17ec94097e3d61;p=platform%2Fupstream%2Fllvm.git [X86] Rename overly verbose method; NFC As suggested on D56636. llvm-svn: 351021 --- diff --git a/llvm/include/llvm/CodeGen/TargetLowering.h b/llvm/include/llvm/CodeGen/TargetLowering.h index 7cb6341..26d4bdb 100644 --- a/llvm/include/llvm/CodeGen/TargetLowering.h +++ b/llvm/include/llvm/CodeGen/TargetLowering.h @@ -3834,8 +3834,7 @@ public: /// Method for building the DAG expansion of ISD::[US][ADD|SUB]SAT. This /// method accepts integers as its arguments. - SDValue getExpandedSaturationAdditionSubtraction(SDNode *Node, - SelectionDAG &DAG) const; + SDValue expandAddSubSat(SDNode *Node, SelectionDAG &DAG) const; /// Method for building the DAG expansion of ISD::SMULFIX. This method accepts /// integers as its arguments. diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 0e5d924..9ac626c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3287,14 +3287,12 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) { case ISD::SADDSAT: case ISD::UADDSAT: case ISD::SSUBSAT: - case ISD::USUBSAT: { - Results.push_back(TLI.getExpandedSaturationAdditionSubtraction(Node, DAG)); + case ISD::USUBSAT: + Results.push_back(TLI.expandAddSubSat(Node, DAG)); break; - } - case ISD::SMULFIX: { + case ISD::SMULFIX: Results.push_back(TLI.getExpandedFixedPointMultiplication(Node, DAG)); break; - } case ISD::SADDO: case ISD::SSUBO: { SDValue LHS = Node->getOperand(0); diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 2be8ac2..5fbc70f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -2577,7 +2577,7 @@ void DAGTypeLegalizer::ExpandIntRes_READCYCLECOUNTER(SDNode *N, SDValue &Lo, void DAGTypeLegalizer::ExpandIntRes_ADDSUBSAT(SDNode *N, SDValue &Lo, SDValue &Hi) { - SDValue Result = TLI.getExpandedSaturationAdditionSubtraction(N, DAG); + SDValue Result = TLI.expandAddSubSat(N, DAG); SplitInteger(Result, Lo, Hi); } diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 0175bcd..3c75744 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -5275,8 +5275,7 @@ SDValue TargetLowering::lowerCmpEqZeroToCtlzSrl(SDValue Op, return SDValue(); } -SDValue TargetLowering::getExpandedSaturationAdditionSubtraction( - SDNode *Node, SelectionDAG &DAG) const { +SDValue TargetLowering::expandAddSubSat(SDNode *Node, SelectionDAG &DAG) const { unsigned Opcode = Node->getOpcode(); unsigned OverflowOp; switch (Opcode) {