Files
clang-p2996/mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
Martin Erhart 9312b4f90f [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
2023-07-08 09:30:41 +00:00

45 KiB