[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
Loading
Please sign in to comment