[Mlir-commits] [mlir] 2c51f5e - [mlir] Use DenseMap::contains (NFC) (#140351)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri May 16 23:54:24 PDT 2025
Author: Kazu Hirata
Date: 2025-05-16T23:54:21-07:00
New Revision: 2c51f5e2d5bc7bdfe38eeb12ea0b343ad9e31650
URL: https://github.com/llvm/llvm-project/commit/2c51f5e2d5bc7bdfe38eeb12ea0b343ad9e31650
DIFF: https://github.com/llvm/llvm-project/commit/2c51f5e2d5bc7bdfe38eeb12ea0b343ad9e31650.diff
LOG: [mlir] Use DenseMap::contains (NFC) (#140351)
Added:
Modified:
mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
Removed:
################################################################################
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.
More information about the Mlir-commits
mailing list