[all-commits] [llvm/llvm-project] 774416: [mlir] GreedyPatternRewriteDriver: Keep track of s...

Matthias Springer via All-commits all-commits at lists.llvm.org
Thu Jan 26 00:22:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 774416bdb396e79e19d9c7ed49a49203c841c7c3
      https://github.com/llvm/llvm-project/commit/774416bdb396e79e19d9c7ed49a49203c841c7c3
  Author: Matthias Springer <springerm at google.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h
    M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
    M mlir/test/Transforms/test-strict-pattern-driver.mlir
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp

  Log Message:
  -----------
  [mlir] GreedyPatternRewriteDriver: Keep track of surviving ops

This change adds `allErased` to the `applyOpPatternsAndFold(ArrayRef<Operation *>, ...)` overload. This overload now supports all functionality that is also supported by `applyOpPatternsAndFold(Operation *, ...)` and can be used as a replacement.

This change has no performance implications when `allErased = nullptr`.

The single-operation overload is removed in a subsequent NFC change.

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




More information about the All-commits mailing list