[Mlir-commits] [mlir] [mlir][tosa] Cleanups for post-merge review comments in tosa-infer-shapes (PR #87660)
Spenser Bauman
llvmlistbot at llvm.org
Tue Apr 9 08:35:50 PDT 2024
================
@@ -39,30 +40,26 @@ namespace {
// type-inference related interface.
// When a non-replaceable use is encountered, the value is wrapped in a
// cast back to the original type after inference.
-bool isReplaceableUser(Operation *user) {
- // Handle unregistered dialects.
- if (!user->getDialect())
- return false;
-
- return user->getDialect()->getNamespace() ==
- TosaDialect::getDialectNamespace() ||
+bool canBeRefined(Operation *user) {
+ Dialect *tosaDialect = user->getContext()->getLoadedDialect<TosaDialect>();
----------------
sabauma wrote:
Fixed
https://github.com/llvm/llvm-project/pull/87660
More information about the Mlir-commits
mailing list