[all-commits] [llvm/llvm-project] 9312b4: [mlir][bufferization] Cache enclosing repetitive r...

Martin Erhart via All-commits all-commits at lists.llvm.org
Sat Jul 8 02:33:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9312b4f90fcd9e1bf0186b66912c3b83c2d35f51
      https://github.com/llvm/llvm-project/commit/9312b4f90fcd9e1bf0186b66912c3b83c2d35f51
  Author: Martin Erhart <merhart at google.com>
  Date:   2023-07-08 (Sat, 08 Jul 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
    M mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h
    M mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
    M mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp

  Log Message:
  -----------
  [mlir][bufferization] Cache enclosing repetitive region

The `getEnclosingRepetitiveRegion` functions walk the ancestor regions everytime which can be expensive especially when there are multiple regions inbetween. This commit adds a cache to the bufferization analysis to remember the result of the walk.

Reviewed By: springerm

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




More information about the All-commits mailing list