Skip to content

Commit 330af6e

Browse files
authored
Convert argument to reference. (#82741)
Avoid copy of large object
1 parent b0d2a52 commit 330af6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/ReplaceWithVeclib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI,
175175
// make sure that the operands of the vector function obtained via VFABI match
176176
// the operands of the original vector instruction.
177177
if (CI) {
178-
for (auto VFParam : OptInfo->Shape.Parameters) {
178+
for (auto &VFParam : OptInfo->Shape.Parameters) {
179179
if (VFParam.ParamKind == VFParamKind::GlobalPredicate)
180180
continue;
181181

0 commit comments

Comments
 (0)