[Mlir-commits] [mlir] 47ddd94 - [MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in ShardingInterface.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Aug 30 12:09:57 PDT 2025
Author: Mehdi Amini
Date: 2025-08-30T12:09:19-07:00
New Revision: 47ddd941a9de4068d4cfa63c41e1978f439c862b
URL: https://github.com/llvm/llvm-project/commit/47ddd941a9de4068d4cfa63c41e1978f439c862b
DIFF: https://github.com/llvm/llvm-project/commit/47ddd941a9de4068d4cfa63c41e1978f439c862b.diff
LOG: [MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in ShardingInterface.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Shard/Interfaces/ShardingInterface.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Shard/Interfaces/ShardingInterface.cpp b/mlir/lib/Dialect/Shard/Interfaces/ShardingInterface.cpp
index d4e76189f7b8a..7a05dfe01f7d7 100644
--- a/mlir/lib/Dialect/Shard/Interfaces/ShardingInterface.cpp
+++ b/mlir/lib/Dialect/Shard/Interfaces/ShardingInterface.cpp
@@ -513,8 +513,9 @@ LogicalResult shard::detail::defaultAddShardingAnnotations(
}
#ifndef NDEBUG
-static bool isValueCompatibleWithFullReplicationSharding(Value value,
- Sharding sharding) {
+static bool
+isValueCompatibleWithFullReplicationSharding(Value value,
+ const Sharding &sharding) {
if (isa<RankedTensorType>(value.getType())) {
return isFullReplication(sharding);
}
More information about the Mlir-commits
mailing list