diff options
author | Adrian Kuegel <akuegel@google.com> | 2023-03-06 12:42:03 +0100 |
---|---|---|
committer | Adrian Kuegel <akuegel@google.com> | 2023-03-06 12:42:03 +0100 |
commit | 3cf42c3f5dd3c03246ca13ad1a1d6abad33eeab8 (patch) | |
tree | 830ae089bad6bb7b56053bfa701f580e05eab97b /mlir/lib | |
parent | 7a5d850da27453268e2c04f604607eaee51bd479 (diff) | |
download | llvm-3cf42c3f5dd3c03246ca13ad1a1d6abad33eeab8.tar.gz |
[mlir] Apply ClangTidy readability finding (NFC)
Diffstat (limited to 'mlir/lib')
-rw-r--r-- | mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp b/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp index 2d1b544e468c..e1b929c8b121 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp @@ -157,7 +157,7 @@ getOrCreatePackedViewOfOperand(OpBuilder &b, Location loc, PackInfo packInfo, AffineMap origIndexingMap = genericOp.getMatchingIndexingMap(opOperand); llvm::DenseMap<int64_t, int64_t> domainDimToOperandDim; SmallVector<AffineExpr> exprs(origIndexingMap.getResults()); - if (genericOp.isScalar(opOperand) || exprs.size() == 0) + if (genericOp.isScalar(opOperand) || exprs.empty()) return std::make_tuple(opOperand->get(), AffineMap::get(numLoops, 0, exprs, b.getContext())); |