[mlir] Restore markUnknownOpDynamicallyLegal to call isDynamicallyLegal by default

Looks like an oversight from b7a4649899

This should probably have a test case ...
This commit is contained in:
Benjamin Kramer 2021-07-24 15:54:42 +02:00
parent c3277a8828
commit e27c700b9a
1 changed files with 2 additions and 1 deletions

View File

@ -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.