File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
include/mlir/Dialect/Bufferization/IR
lib/Dialect/Transform/Interfaces Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ struct OpWithUnstructuredControlFlowBufferizableOpInterfaceExternalModel
54
54
// If the forwarded operand is already on the invocation stack, we ran
55
55
// into a loop and this operand cannot be used to compute the bufferized
56
56
// type.
57
- if (llvm::find (invocationStack, opOperand->get ()) !=
58
- invocationStack.end ())
57
+ if (llvm::is_contained (invocationStack, opOperand->get ()))
59
58
continue ;
60
59
61
60
// Compute the bufferized type of the forwarded operand.
Original file line number Diff line number Diff line change @@ -807,8 +807,7 @@ void transform::TransformState::compactOpHandles() {
807
807
for (Value handle : opHandlesToCompact) {
808
808
Mappings &mappings = getMapping (handle, /* allowOutOfScope=*/ true );
809
809
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
810
- if (llvm::find (mappings.direct [handle], nullptr ) !=
811
- mappings.direct [handle].end ())
810
+ if (llvm::is_contained (mappings.direct [handle], nullptr ))
812
811
// Payload IR is removed from the mapping. This invalidates the respective
813
812
// iterators.
814
813
mappings.incrementTimestamp (handle);
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ struct TestTopologicalSortAnalysisPass
53
53
return WalkResult::advance ();
54
54
});
55
55
56
- if (llvm::find (selectedOps, nullptr ) != selectedOps. end ( )) {
56
+ if (llvm::is_contained (selectedOps, nullptr )) {
57
57
root->emitError (" invalid test case: some indices are missing among the "
58
58
" selected ops" );
59
59
return WalkResult::skip ();
You can’t perform that action at this time.
0 commit comments