[mlir] Use llvm::is_contained (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 7 Nov 2022 03:56:15 +0000 (19:56 -0800)
committerKazu Hirata <kazu@google.com>
Mon, 7 Nov 2022 03:56:15 +0000 (19:56 -0800)
mlir/lib/Dialect/SCF/IR/SCF.cpp

index 684b911..3f65c1c 100644 (file)
@@ -1373,7 +1373,7 @@ LogicalResult PerformConcurrentlyOp::verify() {
     // Verify that inserts are into out block arguments.
     Value dest = cast<tensor::ParallelInsertSliceOp>(op).getDest();
     ArrayRef<BlockArgument> regionOutArgs = foreachThreadOp.getRegionOutArgs();
-    if (llvm::find(regionOutArgs, dest) == regionOutArgs.end())
+    if (!llvm::is_contained(regionOutArgs, dest))
       return op.emitOpError("may only insert into an output block argument");
   }
   return success();