Skip to content

Commit cdd7898

Browse files
committed
[RISCV] Pass SDValue by value. NFC
1 parent 0c028bb commit cdd7898

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10718,7 +10718,7 @@ static SDValue lowerCttzElts(SDNode *N, SelectionDAG &DAG,
1071810718
return DAG.getSelect(DL, XLenVT, Setcc, VL, Res);
1071910719
}
1072010720

10721-
static inline void promoteVCIXScalar(const SDValue &Op,
10721+
static inline void promoteVCIXScalar(SDValue Op,
1072210722
SmallVectorImpl<SDValue> &Operands,
1072310723
SelectionDAG &DAG) {
1072410724
const RISCVSubtarget &Subtarget =
@@ -10754,7 +10754,7 @@ static inline void promoteVCIXScalar(const SDValue &Op,
1075410754
}
1075510755
}
1075610756

10757-
static void processVCIXOperands(SDValue &OrigOp,
10757+
static void processVCIXOperands(SDValue OrigOp,
1075810758
SmallVectorImpl<SDValue> &Operands,
1075910759
SelectionDAG &DAG) {
1076010760
promoteVCIXScalar(OrigOp, Operands, DAG);
@@ -11017,7 +11017,7 @@ SDValue RISCVTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
1101711017
return lowerVectorIntrinsicScalars(Op, DAG, Subtarget);
1101811018
}
1101911019

11020-
static inline SDValue getVCIXISDNodeWCHAIN(SDValue &Op, SelectionDAG &DAG,
11020+
static inline SDValue getVCIXISDNodeWCHAIN(SDValue Op, SelectionDAG &DAG,
1102111021
unsigned Type) {
1102211022
SDLoc DL(Op);
1102311023
SmallVector<SDValue> Operands{Op->op_values()};
@@ -11054,7 +11054,7 @@ static inline SDValue getVCIXISDNodeWCHAIN(SDValue &Op, SelectionDAG &DAG,
1105411054
return NewNode;
1105511055
}
1105611056

11057-
static inline SDValue getVCIXISDNodeVOID(SDValue &Op, SelectionDAG &DAG,
11057+
static inline SDValue getVCIXISDNodeVOID(SDValue Op, SelectionDAG &DAG,
1105811058
unsigned Type) {
1105911059
SmallVector<SDValue> Operands{Op->op_values()};
1106011060
Operands.erase(Operands.begin() + 1);

0 commit comments

Comments
 (0)