@@ -613,8 +613,8 @@ bool RISCVDAGToDAGISel::trySignedBitfieldExtract(SDNode *Node) {
613
613
if (!N0.hasOneUse ())
614
614
return false ;
615
615
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) {
618
618
unsigned Opc =
619
619
Subtarget->hasVendorXTHeadBb () ? RISCV::TH_EXT : RISCV::NDS_BFOS;
620
620
return CurDAG->getMachineNode (Opc, DL, VT, N0.getOperand (0 ),
@@ -671,9 +671,10 @@ bool RISCVDAGToDAGISel::trySignedBitfieldExtract(SDNode *Node) {
671
671
return false ;
672
672
}
673
673
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) {
677
678
// Only supported with XTHeadBb/XAndesPerf at the moment.
678
679
if (!Subtarget->hasVendorXTHeadBb () && !Subtarget->hasVendorXAndesPerf ())
679
680
return false ;
@@ -688,9 +689,9 @@ bool RISCVDAGToDAGISel::tryUnsignedBitfieldExtract(SDNode *Node, SDLoc DL,
688
689
return true ;
689
690
}
690
691
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,
694
695
unsigned Lsb) {
695
696
// Only supported with XAndesPerf at the moment.
696
697
if (!Subtarget->hasVendorXAndesPerf ())
0 commit comments