[llvm] r351021 - [X86] Rename overly verbose method; NFC
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 13 08:41:26 PST 2019
Author: nikic
Date: Sun Jan 13 08:41:26 2019
New Revision: 351021
URL: http://llvm.org/viewvc/llvm-project?rev=351021&view=rev
Log:
[X86] Rename overly verbose method; NFC
As suggested on D56636.
Modified:
llvm/trunk/include/llvm/CodeGen/TargetLowering.h
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Modified: llvm/trunk/include/llvm/CodeGen/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/TargetLowering.h?rev=351021&r1=351020&r2=351021&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/CodeGen/TargetLowering.h Sun Jan 13 08:41:26 2019
@@ -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.
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=351021&r1=351020&r2=351021&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sun Jan 13 08:41:26 2019
@@ -3287,14 +3287,12 @@ bool SelectionDAGLegalize::ExpandNode(SD
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);
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp?rev=351021&r1=351020&r2=351021&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp Sun Jan 13 08:41:26 2019
@@ -2577,7 +2577,7 @@ void DAGTypeLegalizer::ExpandIntRes_READ
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);
}
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp?rev=351021&r1=351020&r2=351021&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Sun Jan 13 08:41:26 2019
@@ -5275,8 +5275,7 @@ SDValue TargetLowering::lowerCmpEqZeroTo
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) {
More information about the llvm-commits
mailing list