Skip to content

Commit 3f9289a

Browse files
committed
[RISCV] Use MutableArrayRef instead of SmallVectorImpl& where wew change the contents of the vector but not its size.
1 parent a3f901f commit 3f9289a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10719,7 +10719,7 @@ static SDValue lowerCttzElts(SDNode *N, SelectionDAG &DAG,
1071910719
}
1072010720

1072110721
static inline void promoteVCIXScalar(const SDValue &Op,
10722-
SmallVectorImpl<SDValue> &Operands,
10722+
MutableArrayRef<SDValue> Operands,
1072310723
SelectionDAG &DAG) {
1072410724
const RISCVSubtarget &Subtarget =
1072510725
DAG.getMachineFunction().getSubtarget<RISCVSubtarget>();
@@ -10755,7 +10755,7 @@ static inline void promoteVCIXScalar(const SDValue &Op,
1075510755
}
1075610756

1075710757
static void processVCIXOperands(SDValue &OrigOp,
10758-
SmallVectorImpl<SDValue> &Operands,
10758+
MutableArrayRef<SDValue> Operands,
1075910759
SelectionDAG &DAG) {
1076010760
promoteVCIXScalar(OrigOp, Operands, DAG);
1076110761
const RISCVSubtarget &Subtarget =

0 commit comments

Comments
 (0)