[llvm] 90d03a0 - [RISCV] Use MutableArrayRef instead of SmallVectorImpl&. NFC (#159651)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 19 10:30:28 PDT 2025
Author: Craig Topper
Date: 2025-09-19T10:21:00-07:00
New Revision: 90d03a0386a6b9640e50513f6948cd2549937208
URL: https://github.com/llvm/llvm-project/commit/90d03a0386a6b9640e50513f6948cd2549937208
DIFF: https://github.com/llvm/llvm-project/commit/90d03a0386a6b9640e50513f6948cd2549937208.diff
LOG: [RISCV] Use MutableArrayRef instead of SmallVectorImpl&. NFC (#159651)
We're only going to modify existing items, not add or remove any
elements to the vector.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 292a52bea9436..a3e1a3cae6a53 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -10734,7 +10734,7 @@ static SDValue lowerCttzElts(SDNode *N, SelectionDAG &DAG,
}
static inline void promoteVCIXScalar(SDValue Op,
- SmallVectorImpl<SDValue> &Operands,
+ MutableArrayRef<SDValue> Operands,
SelectionDAG &DAG) {
const RISCVSubtarget &Subtarget =
DAG.getMachineFunction().getSubtarget<RISCVSubtarget>();
@@ -10770,7 +10770,7 @@ static inline void promoteVCIXScalar(SDValue Op,
}
static void processVCIXOperands(SDValue OrigOp,
- SmallVectorImpl<SDValue> &Operands,
+ MutableArrayRef<SDValue> Operands,
SelectionDAG &DAG) {
promoteVCIXScalar(OrigOp, Operands, DAG);
const RISCVSubtarget &Subtarget =
More information about the llvm-commits
mailing list