Skip to content

Commit 0400e50

Browse files
committed
[X86] Rename overly verbose method; NFC
As suggested on D56636. llvm-svn: 351021
1 parent c004411 commit 0400e50

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3834,8 +3834,7 @@ class TargetLowering : public TargetLoweringBase {
38343834

38353835
/// Method for building the DAG expansion of ISD::[US][ADD|SUB]SAT. This
38363836
/// method accepts integers as its arguments.
3837-
SDValue getExpandedSaturationAdditionSubtraction(SDNode *Node,
3838-
SelectionDAG &DAG) const;
3837+
SDValue expandAddSubSat(SDNode *Node, SelectionDAG &DAG) const;
38393838

38403839
/// Method for building the DAG expansion of ISD::SMULFIX. This method accepts
38413840
/// integers as its arguments.

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3287,14 +3287,12 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
32873287
case ISD::SADDSAT:
32883288
case ISD::UADDSAT:
32893289
case ISD::SSUBSAT:
3290-
case ISD::USUBSAT: {
3291-
Results.push_back(TLI.getExpandedSaturationAdditionSubtraction(Node, DAG));
3290+
case ISD::USUBSAT:
3291+
Results.push_back(TLI.expandAddSubSat(Node, DAG));
32923292
break;
3293-
}
3294-
case ISD::SMULFIX: {
3293+
case ISD::SMULFIX:
32953294
Results.push_back(TLI.getExpandedFixedPointMultiplication(Node, DAG));
32963295
break;
3297-
}
32983296
case ISD::SADDO:
32993297
case ISD::SSUBO: {
33003298
SDValue LHS = Node->getOperand(0);

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@ void DAGTypeLegalizer::ExpandIntRes_READCYCLECOUNTER(SDNode *N, SDValue &Lo,
25772577

25782578
void DAGTypeLegalizer::ExpandIntRes_ADDSUBSAT(SDNode *N, SDValue &Lo,
25792579
SDValue &Hi) {
2580-
SDValue Result = TLI.getExpandedSaturationAdditionSubtraction(N, DAG);
2580+
SDValue Result = TLI.expandAddSubSat(N, DAG);
25812581
SplitInteger(Result, Lo, Hi);
25822582
}
25832583

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5275,8 +5275,7 @@ SDValue TargetLowering::lowerCmpEqZeroToCtlzSrl(SDValue Op,
52755275
return SDValue();
52765276
}
52775277

5278-
SDValue TargetLowering::getExpandedSaturationAdditionSubtraction(
5279-
SDNode *Node, SelectionDAG &DAG) const {
5278+
SDValue TargetLowering::expandAddSubSat(SDNode *Node, SelectionDAG &DAG) const {
52805279
unsigned Opcode = Node->getOpcode();
52815280
unsigned OverflowOp;
52825281
switch (Opcode) {

0 commit comments

Comments
 (0)