OperationLegalizer::isIllegal returns false if operation legality wasn't
registered by user and we expect same behaviour when dynamic legality
callback return None, but instead true was returned.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Transforms/Utils/DialectConversion.cpp | ||
---|---|---|
3139–3143 | Does this work? |
mlir/lib/Transforms/Utils/DialectConversion.cpp | ||
---|---|---|
3139–3143 | This seems to work, but IMO this is confusing. Without knowing the context someone can try to do 'obvious' refactoring to return !info->legalityFn(op) which will break this code. |
Does this work?