forked from OSchip/llvm-project
[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:
parent
c3277a8828
commit
e27c700b9a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue