From: Benjamin Kramer Date: Sat, 24 Jul 2021 13:54:42 +0000 (+0200) Subject: [mlir] Restore markUnknownOpDynamicallyLegal to call isDynamicallyLegal by default X-Git-Tag: llvmorg-14-init~370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e27c700b9a925b65d19391feee59a50dc39694ea;p=platform%2Fupstream%2Fllvm.git [mlir] Restore markUnknownOpDynamicallyLegal to call isDynamicallyLegal by default Looks like an oversight from b7a464989955e6374b39b518e317b59b510d4dc5 This should probably have a test case ... --- diff --git a/mlir/include/mlir/Transforms/DialectConversion.h b/mlir/include/mlir/Transforms/DialectConversion.h index 32945c27..e490ec1 100644 --- a/mlir/include/mlir/Transforms/DialectConversion.h +++ b/mlir/include/mlir/Transforms/DialectConversion.h @@ -753,7 +753,8 @@ public: setLegalityCallback(fn); } void markUnknownOpDynamicallyLegal() { - setLegalityCallback([](Operation *) { return true; }); + setLegalityCallback( + [this](Operation *op) { return isDynamicallyLegal(op); }); } /// Register the operations of the given dialects as illegal, i.e.