Skip to content

Commit 54246a3

Browse files
committed
[RISCV] Pass VSETVLIInfo by const reference. NFC
1 parent b7637a8 commit 54246a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ class VSETVLIInfo {
627627
return MI;
628628
}
629629

630-
void setAVL(VSETVLIInfo Info) {
630+
void setAVL(const VSETVLIInfo &Info) {
631631
assert(Info.isValid());
632632
if (Info.isUnknown())
633633
setUnknown();
@@ -1223,7 +1223,8 @@ bool RISCVInsertVSETVLI::needVSETVLI(const DemandedFields &Used,
12231223
// If we don't use LMUL or the SEW/LMUL ratio, then adjust LMUL so that we
12241224
// maintain the SEW/LMUL ratio. This allows us to eliminate VL toggles in more
12251225
// places.
1226-
static VSETVLIInfo adjustIncoming(VSETVLIInfo PrevInfo, VSETVLIInfo NewInfo,
1226+
static VSETVLIInfo adjustIncoming(const VSETVLIInfo &PrevInfo,
1227+
const VSETVLIInfo &NewInfo,
12271228
DemandedFields &Demanded) {
12281229
VSETVLIInfo Info = NewInfo;
12291230

0 commit comments

Comments
 (0)