[all-commits] [llvm/llvm-project] d361ec: [mlir][SCF][bufferize] Implement `resolveConflicts...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Jun 15 00:07:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d361ecbd0db7dee643c527297a30548b22e760fa
      https://github.com/llvm/llvm-project/commit/d361ecbd0db7dee643c527297a30548b22e760fa
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
    M mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
    A mlir/test/Dialect/SCF/one-shot-bufferize-tensor-copy-insertion.mlir

  Log Message:
  -----------
  [mlir][SCF][bufferize] Implement `resolveConflicts` for SCF ops

scf::ForOp and scf::WhileOp must insert buffer copies not only for out-of-place bufferizations, but also to enforce additional invariants wrt. to buffer aliasing behavior. This is currently happening in the respective `bufferize` methods. With this change, the tensor copy insertion pass will also enforce these invariants by inserting copies. The `bufferize` methods can then be simplified and made independent of the `AnalysisState` data structure in a subsequent change.

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




More information about the All-commits mailing list