[all-commits] [llvm/llvm-project] 572fa9: [mlir] Add a ControlFlowSink pass.

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Jan 24 15:08:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 572fa9642cb50f3c2d79e138e789c4b23f3ab8cf
      https://github.com/llvm/llvm-project/commit/572fa9642cb50f3c2d79e138e789c4b23f3ab8cf
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
    M mlir/include/mlir/Interfaces/ControlFlowInterfaces.td
    M mlir/include/mlir/Transforms/Passes.h
    M mlir/include/mlir/Transforms/Passes.td
    M mlir/include/mlir/Transforms/Utils.h
    M mlir/lib/Transforms/CMakeLists.txt
    A mlir/lib/Transforms/ControlFlowSink.cpp
    M mlir/lib/Transforms/Utils/CMakeLists.txt
    A mlir/lib/Transforms/Utils/ControlFlowSinkUtils.cpp
    A mlir/test/Transforms/control-flow-sink.mlir
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  [mlir] Add a ControlFlowSink pass.

Control-Flow Sink moves operations whose only uses are in conditionally-executed regions into those regions so that paths in which their results are not needed do not perform unnecessary computation.

Depends on D115087

Reviewed By: jpienaar, rriddle, bondhugula

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




More information about the All-commits mailing list