[Mlir-commits] [mlir] [mlir] Use llvm::is_contained (NFC) (PR #139834)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue May 13 21:03:35 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/139834.diff
1 Files Affected:
- (modified) mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
index badcc583bbca2..2d604ed7a8ffc 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
@@ -1128,7 +1128,7 @@ static bool startLoopSeq(CodegenEnv &env, OpBuilder &builder, ExprId exp,
// TODO: remove this! The same tensor level might be added for multiple
// times due to the special handling for all-dense "sparse" output tensor
// (see L1038).
- if (llvm::find(tidLvls, tl) != tidLvls.end())
+ if (llvm::is_contained(tidLvls, tl))
return;
tidLvls.emplace_back(tl);
});
``````````
</details>
https://github.com/llvm/llvm-project/pull/139834
More information about the Mlir-commits
mailing list