[all-commits] [llvm/llvm-project] c97b7b: [mlir][scf] WhileOp patterns cleanup

Ivan Butygin via All-commits all-commits at lists.llvm.org
Fri Apr 14 05:19:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c97b7bcf3e20b8423692e38dd0a1f249e6215bd8
      https://github.com/llvm/llvm-project/commit/c97b7bcf3e20b8423692e38dd0a1f249e6215bd8
  Author: Ivan Butygin <ivan.butygin at gmail.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

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

  Log Message:
  -----------
  [mlir][scf] WhileOp patterns cleanup

Fix review comments from https://reviews.llvm.org/D146252
Merge `WhileRemoveUnusedArgs` pattern with (unused) `WhileUnusedArg`,
use `getConditionOp`, use `SmallPtrSet` and early check, move tests

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




More information about the All-commits mailing list