[all-commits] [llvm/llvm-project] 2a3878: [mlir] DialectConversion: fix OperationLegalizer::...

Ivan Butygin via All-commits all-commits at lists.llvm.org
Mon Nov 15 03:56:15 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a3878ea164462caf0b37c46767242b77b66736f
      https://github.com/llvm/llvm-project/commit/2a3878ea164462caf0b37c46767242b77b66736f
  Author: Butygin <ivan.butygin at intel.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/Transforms/Utils/DialectConversion.cpp
    M mlir/unittests/Transforms/DialectConversion.cpp

  Log Message:
  -----------
  [mlir] DialectConversion: fix OperationLegalizer::isIllegal result when legality callback returns None

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.

Differential Revision: https://reviews.llvm.org/D113267




More information about the All-commits mailing list