Skip to content

Commit 95e6edc

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-copy-initialization in NVGPUTransformOps.cpp (NFC)
1 parent 257417e commit 95e6edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ FailureOr<Operation *> MmaSyncBuilder::buildMmaSync(LinalgOp linalgOp) {
792792
if (failed(maybeInfo))
793793
return failure();
794794

795-
MmaSyncInfo info = *maybeInfo;
795+
const MmaSyncInfo &info = *maybeInfo;
796796
auto [lhsIndexFn, rhsIndexFn, resIndexFn] = info.indexFns;
797797
auto [lhsShape, rhsShape, resShape] = info.vectorShapes;
798798
Value lhs = buildMmaSyncMemRefLoadOperand(b, loc, laneId, lhsMemRef,

0 commit comments

Comments
 (0)