[Mlir-commits] [mlir] 18d3db4 - [MLIR] Apply clang-tidy fixes for readability-container-size-empty in ShardOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Fri Nov 21 03:57:50 PST 2025
Author: Mehdi Amini
Date: 2025-11-21T03:57:31-08:00
New Revision: 18d3db4bcd42e21e45b499a2999834904a925af0
URL: https://github.com/llvm/llvm-project/commit/18d3db4bcd42e21e45b499a2999834904a925af0
DIFF: https://github.com/llvm/llvm-project/commit/18d3db4bcd42e21e45b499a2999834904a925af0.diff
LOG: [MLIR] Apply clang-tidy fixes for readability-container-size-empty in ShardOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Shard/IR/ShardOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Shard/IR/ShardOps.cpp b/mlir/lib/Dialect/Shard/IR/ShardOps.cpp
index 645cbff113402..46ffed3b16b58 100644
--- a/mlir/lib/Dialect/Shard/IR/ShardOps.cpp
+++ b/mlir/lib/Dialect/Shard/IR/ShardOps.cpp
@@ -576,7 +576,7 @@ LogicalResult ShardingOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
return failure();
}
if (mlir::ShapedType::isDynamicShape(grid->getShape()) &&
- getStaticShardedDimsOffsets().size() > 0) {
+ !getStaticShardedDimsOffsets().empty()) {
return emitError() << "sharded dims offsets are not allowed for "
"device grids with dynamic shape.";
}
More information about the Mlir-commits
mailing list