@@ -3894,7 +3894,6 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
3894
3894
assert (N->getValueType (0 ) == MVT::i32 && Subtarget.is64Bit () &&
3895
3895
" Unexpected custom legalisation" );
3896
3896
bool IsAdd = N->getOpcode () == ISD::UADDO;
3897
- SDLoc DL (N);
3898
3897
// Create an ADDW or SUBW.
3899
3898
SDValue LHS = DAG.getNode (ISD::ANY_EXTEND, DL, MVT::i64 , N->getOperand (0 ));
3900
3899
SDValue RHS = DAG.getNode (ISD::ANY_EXTEND, DL, MVT::i64 , N->getOperand (1 ));
@@ -3918,7 +3917,6 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
3918
3917
case ISD::USUBSAT: {
3919
3918
assert (N->getValueType (0 ) == MVT::i32 && Subtarget.is64Bit () &&
3920
3919
" Unexpected custom legalisation" );
3921
- SDLoc DL (N);
3922
3920
if (Subtarget.hasStdExtZbb ()) {
3923
3921
// With Zbb we can sign extend and let LegalizeDAG use minu/maxu. Using
3924
3922
// sign extend allows overflow of the lower 32 bits to be detected on
@@ -3966,7 +3964,6 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
3966
3964
// This is similar to customLegalizeToWOp, except that we pass the second
3967
3965
// operand (a TargetConstant) straight through: it is already of type
3968
3966
// XLenVT.
3969
- SDLoc DL (N);
3970
3967
RISCVISD::NodeType WOpcode = getRISCVWOpcode (N->getOpcode ());
3971
3968
SDValue NewOp0 =
3972
3969
DAG.getNode (ISD::ANY_EXTEND, DL, MVT::i64 , N->getOperand (0 ));
@@ -3981,7 +3978,6 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
3981
3978
// There is no SHFLIW instruction, but we can just promote the operation.
3982
3979
assert (N->getValueType (0 ) == MVT::i32 && Subtarget.is64Bit () &&
3983
3980
" Unexpected custom legalisation" );
3984
- SDLoc DL (N);
3985
3981
SDValue NewOp0 =
3986
3982
DAG.getNode (ISD::ANY_EXTEND, DL, MVT::i64 , N->getOperand (0 ));
3987
3983
SDValue NewRes =
@@ -4033,7 +4029,6 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
4033
4029
// transferred to the destination register. We issue two of these from the
4034
4030
// upper- and lower- halves of the SEW-bit vector element, slid down to the
4035
4031
// first element.
4036
- SDLoc DL (N);
4037
4032
SDValue Vec = N->getOperand (0 );
4038
4033
SDValue Idx = N->getOperand (1 );
4039
4034
0 commit comments