[all-commits] [llvm/llvm-project] f8d375: [MLIR][memref] Fix findDealloc() to handle > 1 dea...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Thu Jul 22 09:34:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f8d3755f00b8228d1441429dcd63af45f59ce164
      https://github.com/llvm/llvm-project/commit/f8d3755f00b8228d1441429dcd63af45f59ce164
  Author: Rahul Joshi <jurahul at google.com>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
    M mlir/include/mlir/Dialect/MemRef/Utils/MemRefUtils.h
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp
    M mlir/lib/Transforms/BufferUtils.cpp
    M mlir/test/Dialect/MemRef/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][memref] Fix findDealloc() to handle > 1 dealloc for the given alloc.

- Change findDealloc() to return Optional<Operation *> and return None if > 1
  dealloc is associated with the given alloc.
- Add findDeallocs() to return all deallocs associated with the given alloc.
- Fix current uses of findDealloc() to bail out if > 1 dealloc is found.

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




More information about the All-commits mailing list