summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp')
-rw-r--r--mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp b/mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp
index 54fc91cb2642..a2338476397a 100644
--- a/mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp
+++ b/mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp
@@ -166,12 +166,12 @@ LogicalResult mesh::ShardingInterface::verifyShardingInterfaceImpl() {
// check loop types
SmallVector<utils::IteratorType> loopTypes = getLoopIteratorTypes();
- if (loopTypes.size() == 0)
+ if (loopTypes.empty())
return failure();
// check maps
SmallVector<AffineMap> maps = getIndexingMaps();
- if (maps.size() == 0)
+ if (maps.empty())
return failure();
unsigned numOperands = op->getNumOperands();
unsigned numResults = op->getNumResults();