[all-commits] [llvm/llvm-project] 37a147: [mlir][bufferize] Allow in-place bufferization for...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed May 4 00:48:23 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37a147352457c690a6130a5d20ef381037fc3548
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-05-04 (Wed, 04 May 2022)

  Changed paths:
    M mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-analysis.mlir

  Log Message:
  [mlir][bufferize] Allow in-place bufferization for writes to init_tensors in loops

This commit relaxes the rules around ops that define a value but do not specify the tensor's contents. (The only such op at the moment is init_tensor.)

When such a tensor is written in a loop, it should not cause out-of-place bufferization.

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

More information about the All-commits mailing list