Skip to content

Commit b4b5013

Browse files
[mlir] Use llvm::is_contained (NFC) (llvm#139834)
1 parent f1c9128 commit b4b5013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ static bool startLoopSeq(CodegenEnv &env, OpBuilder &builder, ExprId exp,
11281128
// TODO: remove this! The same tensor level might be added for multiple
11291129
// times due to the special handling for all-dense "sparse" output tensor
11301130
// (see L1038).
1131-
if (llvm::find(tidLvls, tl) != tidLvls.end())
1131+
if (llvm::is_contained(tidLvls, tl))
11321132
return;
11331133
tidLvls.emplace_back(tl);
11341134
});

0 commit comments

Comments
 (0)