[Mlir-commits] [mlir] f083c9b - [mlir][SparseTensor] Apply ClangTidyLegacy finding (NFC).
Adrian Kuegel
llvmlistbot at llvm.org
Tue Dec 6 04:30:41 PST 2022
Author: Adrian Kuegel
Date: 2022-12-06T13:29:47+01:00
New Revision: f083c9bdef7e178ec195170c570a55294e80d6e1
URL: https://github.com/llvm/llvm-project/commit/f083c9bdef7e178ec195170c570a55294e80d6e1
DIFF: https://github.com/llvm/llvm-project/commit/f083c9bdef7e178ec195170c570a55294e80d6e1.diff
LOG: [mlir][SparseTensor] Apply ClangTidyLegacy finding (NFC).
Converting integer literal to bool, use bool literal instead.
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
index 7d6ac51dab1b7..55b4c9b2e485f 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseVectorization.cpp
@@ -244,7 +244,7 @@ static bool vectorizeSubscripts(PatternRewriter &rewriter, scf::ForOp forOp,
}
// Look under the hood of casting.
auto cast = sub;
- while (1) {
+ while (true) {
if (auto icast = cast.getDefiningOp<arith::IndexCastOp>())
cast = icast->getOperand(0);
else if (auto ecast = cast.getDefiningOp<arith::ExtUIOp>())
More information about the Mlir-commits
mailing list