[Mlir-commits] [mlir] [mlir] Use DenseMap::contains (NFC) (PR #140351)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri May 16 21:54:20 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-async
@llvm/pr-subscribers-mlir
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/140351.diff
1 Files Affected:
- (modified) mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp b/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
index b6a014e2f0a31..c289faaf9983c 100644
--- a/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
+++ b/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
@@ -793,7 +793,7 @@ void AsyncToAsyncRuntimePass::runOnOperation() {
// Returns true if operation is inside the coroutine.
auto isInCoroutine = [&](Operation *op) -> bool {
auto parentFunc = op->getParentOfType<func::FuncOp>();
- return coros->find(parentFunc) != coros->end();
+ return coros->contains(parentFunc);
};
// Lower async operations to async.runtime operations.
``````````
</details>
https://github.com/llvm/llvm-project/pull/140351
More information about the Mlir-commits
mailing list