[all-commits] [llvm/llvm-project] 186c15: [mlir] Remove the dependency on StandardOps from F...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Dec 10 14:21:13 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 186c154991e85f8d6a4a77c5add3322351862725
      https://github.com/llvm/llvm-project/commit/186c154991e85f8d6a4a77c5add3322351862725
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-12-10 (Thu, 10 Dec 2020)

  Changed paths:
    M mlir/lib/Dialect/Shape/IR/Shape.cpp
    M mlir/lib/Transforms/Utils/FoldUtils.cpp
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/mlir-tblgen/pattern.mlir

  Log Message:
  -----------
  [mlir] Remove the dependency on StandardOps from FoldUtils

OperationFolder currently uses ConstantOp as a backup when trying to materialize a constant after an operation is folded. This dependency isn't really useful or necessary given that dialects can/should provide a `materializeConstant` implementation.

Fixes PR#44866

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




More information about the All-commits mailing list