[Mlir-commits] [mlir] [mlir][tosa] Fix invalid data type combinations check (PR #150066)

Luke Hutton llvmlistbot at llvm.org
Wed Jul 30 01:52:11 PDT 2025


================
@@ -464,9 +464,16 @@ LogicalResult TosaProfileCompliance::checkInvalid(Operation *op) {
   CheckCondition condition = CheckCondition::invalid;
   const auto maybeProfDef = getOperatorDefinition<Profile>(op, condition);
   const auto maybeExtDef = getOperatorDefinition<Extension>(op, condition);
+  if (failed(maybeProfDef) && failed(maybeExtDef))
+    return success();
+
+  bool hasEntry = false;
----------------
lhutton1 wrote:

much cleaner, thanks!

https://github.com/llvm/llvm-project/pull/150066


More information about the Mlir-commits mailing list