[all-commits] [llvm/llvm-project] a1d5bd: Make the folder more robust against op fold() meth...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed Feb 3 17:59:22 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1d5bdf8192fccf5dddeb3c18a187e9ffe2c2dbd
      https://github.com/llvm/llvm-project/commit/a1d5bdf8192fccf5dddeb3c18a187e9ffe2c2dbd
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M mlir/lib/Transforms/Utils/FoldUtils.cpp
    M mlir/test/Transforms/test-canonicalize.mlir
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  Make the folder more robust against op fold() methods that generate a type mismatch

We could extend this with an interface to allow dialect to perform a type
conversion, but that would make the folder creating operation which isn't
the case at the moment, and isn't necessarily always desirable.

Reviewed By: rriddle

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




More information about the All-commits mailing list