[all-commits] [llvm/llvm-project] c5501a: [mlir][linalg][bufferize] Eliminate InitTensorOps ...

Matthias Springer via All-commits all-commits at lists.llvm.org
Thu Oct 21 05:43:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5501a7a5c582168d1b12335c092bce53b32022d
      https://github.com/llvm/llvm-project/commit/c5501a7a5c582168d1b12335c092bce53b32022d
  Author: Matthias Springer <springerm at google.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
    M mlir/test/Dialect/Linalg/comprehensive-module-bufferize-analysis.mlir
    M mlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir

  Log Message:
  -----------
  [mlir][linalg][bufferize] Eliminate InitTensorOps of InsertSliceOp sources

An InitTensorOp is replaced with an ExtractSliceOp on the InsertSliceOp's destination. This optimization is applied after analysis and only to InsertSliceOps that were decided to bufferize inplace. Another analysis on the new ExtractSliceOp is needed after the rewrite.

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




More information about the All-commits mailing list