[all-commits] [llvm/llvm-project] 8f4859: Create Optimization Pass Wrapper for MLIR Reduce

Mauricio Sifontes via All-commits all-commits at lists.llvm.org
Tue Aug 18 09:48:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f4859d35120b007c53ac075375d9d1791ec6c86
      https://github.com/llvm/llvm-project/commit/8f4859d35120b007c53ac075375d9d1791ec6c86
  Author: Mauricio Sifontes <sifontes at google.com>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    A mlir/include/mlir/Reducer/OptReductionPass.h
    M mlir/include/mlir/Reducer/Passes.td
    M mlir/include/mlir/Reducer/ReductionTreePass.h
    A mlir/test/mlir-reduce/dce-test.mlir
    A mlir/test/mlir-reduce/multiple-function.mlir
    R mlir/test/mlir-reduce/reduction-tree-pass.mlir
    A mlir/test/mlir-reduce/simple-test.mlir
    A mlir/test/mlir-reduce/single-function.mlir
    R mlir/test/mlir-reduce/test-reducer-pass.mlir
    R mlir/test/mlir-reduce/testcase-linux.mlir
    M mlir/tools/mlir-reduce/CMakeLists.txt
    A mlir/tools/mlir-reduce/OptReductionPass.cpp
    M mlir/tools/mlir-reduce/mlir-reduce.cpp

  Log Message:
  -----------
  Create Optimization Pass Wrapper for MLIR Reduce

Create a reduction pass that accepts an optimization pass as argument
and only replaces the golden module in the pipeline if the output of the
optimization pass is smaller than the input and still exhibits the
interesting behavior.

Add a -test-pass option to test individual passes in the MLIR Reduce
tool.

Reviewed By: jpienaar

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




More information about the All-commits mailing list