[all-commits] [llvm/llvm-project] 933778: [mlir] add scf.if op canonicalization pattern that...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Sun Oct 11 01:45:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 93377888ae89560ba6d3976e2762d3d4724c4dfd
      https://github.com/llvm/llvm-project/commit/93377888ae89560ba6d3976e2762d3d4724c4dfd
  Author: Tobias Gysi <tobias.gysi at gmail.com>
  Date:   2020-10-11 (Sun, 11 Oct 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/SCF/SCFOps.td
    M mlir/lib/Dialect/SCF/SCF.cpp
    M mlir/test/Dialect/SCF/canonicalize.mlir

  Log Message:
  -----------
  [mlir] add scf.if op canonicalization pattern that removes unused results

The patch adds a canonicalization pattern that removes the unused results of scf.if operation. As a result, cse may remove unused computations in the then and else regions of the scf.if operation.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list