Skip to content

Commit e6e36b9

Browse files
committed
Apply clang-tidy fixes for modernize-loop-convert to MLIR (NFC)
1 parent cfdf974 commit e6e36b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Linalg/Transforms/SparseTensorRewriting.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ static bool isSparseTensor(OpOperand *op) {
3535
if (auto enc = getSparseTensorEncoding(op->get().getType())) {
3636
ArrayRef<SparseTensorEncodingAttr::DimLevelType> dimTypes =
3737
enc.getDimLevelType();
38-
for (unsigned i = 0, e = dimTypes.size(); i < e; i++)
39-
if (dimTypes[i] == SparseTensorEncodingAttr::DimLevelType::Compressed)
38+
for (auto dimType : dimTypes)
39+
if (dimType == SparseTensorEncodingAttr::DimLevelType::Compressed)
4040
return true; // at least one compressed
4141
}
4242
return false;

0 commit comments

Comments
 (0)