[all-commits] [llvm/llvm-project] 7c06f6: [mlir][tensor][bufferize] Fix dealloc placement in...

Matthias Springer via All-commits all-commits at lists.llvm.org
Sat Apr 15 17:49:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c06f63176da05ef45216c13b271a343b72d75d0
      https://github.com/llvm/llvm-project/commit/7c06f63176da05ef45216c13b271a343b72d75d0
  Author: Matthias Springer <springerm at google.com>
  Date:   2023-04-16 (Sun, 16 Apr 2023)

  Changed paths:
    M mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
    M mlir/test/Dialect/Tensor/one-shot-bufferize.mlir

  Log Message:
  -----------
  [mlir][tensor][bufferize] Fix dealloc placement in scf.forall op

The terminator of this op is special: it does not just yield a value,
but bufferizes to a memcpy. This requires special treatment to make sure
that deallocs are placed after the memcpy. (By default, deallocs are
placed right before the terminator.)

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




More information about the All-commits mailing list