diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-19 15:28:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-19 15:28:47 +0000 |
commit | 1c4d492b944768ded5356587779045cc346409d7 (patch) | |
tree | cb983765fc996fb24043b910933763ae325e2df2 /lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp | |
parent | 7b73a5d6dead3fa765cdde8316a19ac8930cc60d (diff) |
rename ExpandOperation to ExpandOperationResult, as suggested
by Duncan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp index 82a91babe5..f7d3d2555f 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp @@ -618,8 +618,7 @@ void DAGTypeLegalizer::ExpandResult(SDNode *N, unsigned ResNo) { TLI.getOperationAction(N->getOpcode(), N->getValueType(0)) == TargetLowering::Custom) { // If the target wants to, allow it to lower this itself. - std::pair<SDOperand,SDOperand> P = - TLI.ExpandOperation(SDOperand(N, 0), DAG); + std::pair<SDOperand,SDOperand> P = TLI.ExpandOperationResult(N, DAG); if (P.first.Val) { Lo = P.first; Hi = P.second; @@ -852,20 +851,6 @@ void DAGTypeLegalizer::ExpandResult_SELECT_CC(SDNode *N, void DAGTypeLegalizer::ExpandResult_ADDSUB(SDNode *N, SDOperand &Lo, SDOperand &Hi) { - MVT::ValueType VT = N->getValueType(0); - - // If the target wants to custom expand this, let them. - if (TLI.getOperationAction(N->getOpcode(), VT) == - TargetLowering::Custom) { - std::pair<SDOperand,SDOperand> Ret = - TLI.ExpandOperation(SDOperand(N, 0), DAG); - if (Ret.first.Val) { - Lo = Ret.first; - Hi = Ret.second; - return; - } - } - // Expand the subcomponents. SDOperand LHSL, LHSH, RHSL, RHSH; GetExpandedOp(N->getOperand(0), LHSL, LHSH); |