[all-commits] [llvm/llvm-project] 5c7d97: [mlir][bufferization] Canonicalizer to skip extrac...

Martin Erhart via All-commits all-commits at lists.llvm.org
Thu Aug 10 00:11:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c7d97be4acb1ec7dca34555873bbc8f562dfdfa
      https://github.com/llvm/llvm-project/commit/5c7d97be4acb1ec7dca34555873bbc8f562dfdfa
  Author: Martin Erhart <merhart at google.com>
  Date:   2023-08-10 (Thu, 10 Aug 2023)

  Changed paths:
    M mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
    M mlir/test/Dialect/Bufferization/canonicalize.mlir

  Log Message:
  -----------
  [mlir][bufferization] Canonicalizer to skip extract_strided_metadata when operand is already a base memref.

The `extract_strided_metadata` will be heavily used by the new buffer deallocation pass to get the base memref and pass it to the deallocation operation. This commit factors out some simplification logic of the pass into a canonicalization pattern.

Reviewed By: springerm

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




More information about the All-commits mailing list