Skip to content

Commit

Permalink
Convert argument to reference. (#82741)
Browse files Browse the repository at this point in the history
Avoid copy of large object
  • Loading branch information
MalaySanghi committed Feb 24, 2024
1 parent b0d2a52 commit 330af6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/ReplaceWithVeclib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI,
// make sure that the operands of the vector function obtained via VFABI match
// the operands of the original vector instruction.
if (CI) {
for (auto VFParam : OptInfo->Shape.Parameters) {
for (auto &VFParam : OptInfo->Shape.Parameters) {
if (VFParam.ParamKind == VFParamKind::GlobalPredicate)
continue;

Expand Down

0 comments on commit 330af6e

Please sign in to comment.