[all-commits] [llvm/llvm-project] 914e72: [mlir][linalg] Run CSE after every CodegenStrategy...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Tue Nov 30 07:09:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 914e72d40014de1c61709969666be59f27712e5e
      https://github.com/llvm/llvm-project/commit/914e72d40014de1c61709969666be59f27712e5e
  Author: gysit <gysit at google.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/LinalgStrategyPasses.cpp
    M mlir/test/Dialect/Linalg/codegen-strategy.mlir

  Log Message:
  -----------
  [mlir][linalg] Run CSE after every CodegenStrategy transformation.

Add CSE after every transformation. Transformations such as tiling introduce redundant computation, for example, one AffineMinOp for every operand dimension pair. Follow up transformations such as Padding and Hoisting benefit from CSE since comparing slice sizes simplifies to comparing SSA values instead of analyzing affine expressions.

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list