Skip to content

Commit 053f27d

Browse files
vmustyaigcbot
authored andcommitted
Eliminate redundant copy in GenXLowering
The issue is that the copy is redundant and can be eliminated by using `auto &` instead of `auto` in the range-based for loops.
1 parent f38d9c1 commit 053f27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4889,7 +4889,7 @@ bool GenXLowering::lowerDpas(CallInst *CI) {
48894889

48904890
SmallVector<Type *, 6> Types = {Ty};
48914891

4892-
for (auto IdxArg : enumerate(Args))
4892+
for (auto &IdxArg : enumerate(Args))
48934893
if (vc::isOverloadedArg(IID, IdxArg.index()))
48944894
Types.push_back(IdxArg.value()->getType());
48954895

0 commit comments

Comments
 (0)