[all-commits] [llvm/llvm-project] d0b282: [mlir][Linalg] Rewrite PadTensorOp to enable its c...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Wed Jul 7 05:41:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0b282e10bc91ea19a9b1a0ca4ed81d0c65e7cd3
      https://github.com/llvm/llvm-project/commit/d0b282e10bc91ea19a9b1a0ca4ed81d0c65e7cd3
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2021-07-07 (Wed, 07 Jul 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-invalid.mlir
    M mlir/test/Integration/Dialect/Linalg/CPU/test-comprehensive-bufferize.mlir

  Log Message:
  -----------
  [mlir][Linalg] Rewrite PadTensorOp to enable its comprehensive bufferization.

Add the rewrite of PadTensorOp to InitTensor + InsertSlice before the
bufferization analysis starts.

This is exercised via a more advanced integration test.

Since the new behavior triggers folding, 2 tests need to be updated.
One of those seems to exhibit a folding issue with `switch` and is modified.

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




More information about the All-commits mailing list