aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCombiner.cpp
diff options
context:
space:
mode:
authorLuo, Yuanke <yuanke.luo@intel.com>2023-05-05 09:14:04 +0800
committerLuo, Yuanke <yuanke.luo@intel.com>2023-05-05 09:15:22 +0800
commitb0fb98227c90adf2536c9ad644a74d5e92961111 (patch)
treec58310f58de857ce78a58df74b15a35ea54b8b51 /llvm/lib/CodeGen/MachineCombiner.cpp
parentb2420c67e4b00d8eca7fb1af54aa520ea43c21d2 (diff)
downloadllvm-b0fb98227c90adf2536c9ad644a74d5e92961111.zip
llvm-b0fb98227c90adf2536c9ad644a74d5e92961111.tar.gz
llvm-b0fb98227c90adf2536c9ad644a74d5e92961111.tar.bz2
[Coverity] Big parameter passed by value.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp
index 4ae95bf..ec5eb71 100644
--- a/llvm/lib/CodeGen/MachineCombiner.cpp
+++ b/llvm/lib/CodeGen/MachineCombiner.cpp
@@ -502,8 +502,8 @@ bool MachineCombiner::preservesResourceLen(
/// otherwise invalidate the trace
static void insertDeleteInstructions(
MachineBasicBlock *MBB, MachineInstr &MI,
- SmallVector<MachineInstr *, 16> InsInstrs,
- SmallVector<MachineInstr *, 16> DelInstrs,
+ SmallVectorImpl<MachineInstr *> &InsInstrs,
+ SmallVectorImpl<MachineInstr *> &DelInstrs,
MachineTraceMetrics::Ensemble *TraceEnsemble,
SparseSet<LiveRegUnit> &RegUnits, const TargetInstrInfo *TII,
MachineCombinerPattern Pattern, bool IncrementalUpdate) {