Skip to content

Commit b3a2208

Browse files
committed
[mlir] Apply ClangTidy fixes.
- Prefer to check empty() instead of size() == 0. - Remove unused using declarations.
1 parent de1f5b9 commit b3a2208

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

mlir/lib/Dialect/SCF/Transforms/ForallToFor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ namespace mlir {
2323

2424
using namespace llvm;
2525
using namespace mlir;
26-
using scf::ForallOp;
27-
using scf::ForOp;
2826
using scf::LoopNest;
2927

3028
LogicalResult

mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static bool haveNoReadsAfterWriteExceptSameIndex(
8585
return WalkResult::advance();
8686

8787
// Check that at last one store was retrieved
88-
if (!write->second.size())
88+
if (write->second.empty())
8989
return WalkResult::interrupt();
9090

9191
auto storeIndices = write->second.front();

0 commit comments

Comments
 (0)