Skip to content

Commit bd4c21b

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-move-const-arg in NVGPUTransformOps.cpp (NFC)
1 parent c379f7c commit bd4c21b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ MmaSyncBuilder::buildMemRefLoads(OpBuilder &b, Location loc,
675675
Value MmaSyncBuilder::buildMmaSyncMemRefLoadOperand(
676676
OpBuilder &b, Location loc, OpFoldResult laneId, Value memref,
677677
IndexCalculator indexFn, ArrayRef<int64_t> vectorShape) {
678-
auto loads = buildMemRefLoads(b, loc, laneId, memref, std::move(indexFn));
678+
auto loads = buildMemRefLoads(b, loc, laneId, memref, indexFn);
679679

680680
Type elementType = getElementTypeOrSelf(memref.getType());
681681
auto vt = VectorType::get(vectorShape, elementType);
@@ -727,7 +727,7 @@ SmallVector<Operation *> MmaSyncBuilder::buildMmaSyncMemRefStoreOperand(
727727
[&](Value v, int64_t linearIdx, ArrayRef<int64_t> indices) {
728728
toStore.push_back(v);
729729
});
730-
return buildMemRefStores(b, loc, toStore, laneId, memref, std::move(indexFn));
730+
return buildMemRefStores(b, loc, toStore, laneId, memref, indexFn);
731731
}
732732

733733
static std::tuple<SmallVector<int64_t>, SmallVector<int64_t>,

0 commit comments

Comments
 (0)