[all-commits] [llvm/llvm-project] ca2726: [MLIR] Add SCF.if Condition Canonicalizations

William Moses via All-commits all-commits at lists.llvm.org
Mon Apr 26 17:13:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca27260701e237a4470cc00f0791b93e78e5fed8
      https://github.com/llvm/llvm-project/commit/ca27260701e237a4470cc00f0791b93e78e5fed8
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M mlir/lib/Dialect/SCF/SCF.cpp
    M mlir/test/Dialect/SCF/canonicalize.mlir
    M mlir/test/Transforms/canonicalize.mlir

  Log Message:
  -----------
  [MLIR] Add SCF.if Condition Canonicalizations

Add two canoncalizations for scf.if.
  1) A canonicalization that allows users of a condition within an if to assume the condition
     is true if in the true region, etc.
  2) A canonicalization that removes yielded statements that are equivalent to the condition
     or its negation

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




More information about the All-commits mailing list