[all-commits] [llvm/llvm-project] 462e3c: [mlir][StandardDialect] Add some folding for opera...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Mon Jun 15 22:53:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 462e3ccdd0d0ce233b8844e976432906d56f8a43
      https://github.com/llvm/llvm-project/commit/462e3ccdd0d0ce233b8844e976432906d56f8a43
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-06-15 (Mon, 15 Jun 2020)

  Changed paths:
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/test/Transforms/constant-fold.mlir

  Log Message:
  -----------
  [mlir][StandardDialect] Add some folding for operations in standard dialect.

Add the following canonicalization
- and(x, 1) -> x
- subi(x, 0) -> x

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




More information about the All-commits mailing list