diff --git a/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp b/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp --- a/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp +++ b/mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp @@ -687,7 +687,7 @@ if (isAllowedToBlock(func) || outlinedFunctions.find(func) == outlinedFunctions.end()) { for (Operation &op : func.getBody().getOps()) { - if (dyn_cast(op) || dyn_cast(op)) { + if (isa(op)) { funcWorklist.push_back(func); break; } diff --git a/mlir/lib/Dialect/Func/Transforms/FuncConversions.cpp b/mlir/lib/Dialect/Func/Transforms/FuncConversions.cpp --- a/mlir/lib/Dialect/Func/Transforms/FuncConversions.cpp +++ b/mlir/lib/Dialect/Func/Transforms/FuncConversions.cpp @@ -143,7 +143,7 @@ // If this is a `return` and the user pass wants to convert/transform across // function boundaries, then `converter` is invoked to check whether the the // `return` op is legal. - if (dyn_cast(op) && !returnOpAlwaysLegal) + if (isa(op) && !returnOpAlwaysLegal) return converter.isLegal(op); // ReturnLike operations have to be legalized with their parent. For diff --git a/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp b/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp --- a/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp @@ -397,7 +397,7 @@ // Note: No need to check whether the result type of this op is // detensorable since if it wasn't we wouldn't reach that point in the // work list. - if (dyn_cast(currentItemDefiningOp)) + if (isa(currentItemDefiningOp)) continue; // 2.4 - The current item is the result of a scalar op, add all its