@@ -613,8 +613,8 @@ bool RISCVDAGToDAGISel::trySignedBitfieldExtract(SDNode *Node) {
613613 if (!N0.hasOneUse ())
614614 return false ;
615615
616- auto BitfieldExtract = [&](SDValue N0, unsigned Msb, unsigned Lsb, SDLoc DL,
617- MVT VT) {
616+ auto BitfieldExtract = [&](SDValue N0, unsigned Msb, unsigned Lsb,
617+ const SDLoc &DL, MVT VT) {
618618 unsigned Opc =
619619 Subtarget->hasVendorXTHeadBb () ? RISCV::TH_EXT : RISCV::NDS_BFOS;
620620 return CurDAG->getMachineNode (Opc, DL, VT, N0.getOperand (0 ),
@@ -671,9 +671,10 @@ bool RISCVDAGToDAGISel::trySignedBitfieldExtract(SDNode *Node) {
671671 return false ;
672672}
673673
674- bool RISCVDAGToDAGISel::tryUnsignedBitfieldExtract (SDNode *Node, SDLoc DL,
675- MVT VT, SDValue X,
676- unsigned Msb, unsigned Lsb) {
674+ bool RISCVDAGToDAGISel::tryUnsignedBitfieldExtract (SDNode *Node,
675+ const SDLoc &DL, MVT VT,
676+ SDValue X, unsigned Msb,
677+ unsigned Lsb) {
677678 // Only supported with XTHeadBb/XAndesPerf at the moment.
678679 if (!Subtarget->hasVendorXTHeadBb () && !Subtarget->hasVendorXAndesPerf ())
679680 return false ;
@@ -688,9 +689,9 @@ bool RISCVDAGToDAGISel::tryUnsignedBitfieldExtract(SDNode *Node, SDLoc DL,
688689 return true ;
689690}
690691
691- bool RISCVDAGToDAGISel::tryUnsignedBitfieldInsertInZero (SDNode *Node, SDLoc DL,
692- MVT VT, SDValue X ,
693- unsigned Msb,
692+ bool RISCVDAGToDAGISel::tryUnsignedBitfieldInsertInZero (SDNode *Node,
693+ const SDLoc &DL, MVT VT ,
694+ SDValue X, unsigned Msb,
694695 unsigned Lsb) {
695696 // Only supported with XAndesPerf at the moment.
696697 if (!Subtarget->hasVendorXAndesPerf ())
0 commit comments