projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c2b76f
)
[mlir] Use llvm::is_contained (NFC)
author
Kazu Hirata
<kazu@google.com>
Mon, 7 Nov 2022 03:56:15 +0000
(19:56 -0800)
committer
Kazu Hirata
<kazu@google.com>
Mon, 7 Nov 2022 03:56:15 +0000
(19:56 -0800)
mlir/lib/Dialect/SCF/IR/SCF.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Dialect/SCF/IR/SCF.cpp
b/mlir/lib/Dialect/SCF/IR/SCF.cpp
index
684b911
..
3f65c1c
100644
(file)
--- a/
mlir/lib/Dialect/SCF/IR/SCF.cpp
+++ b/
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@
-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();