[Mlir-commits] [mlir] [mlir][bufferization] Use a cache when checking whether ops are in mutually exclusive regions (PR #123516)

Matthias Springer llvmlistbot at llvm.org
Sun Jan 19 08:14:25 PST 2025


================
@@ -107,7 +107,23 @@ Region *AnalysisState::getEnclosingRepetitiveRegion(
   return region;
 }
 
-void AnalysisState::resetCache() { enclosingRepetitiveRegionCache.clear(); }
+bool AnalysisState::checkInMutuallyExclusiveRegions(Operation *op0,
----------------
matthias-springer wrote:

nit: you could call this function `insideMutuallyExclusiveRegions`, then call `mlir::insideMutuallyExclusiveRegions` below.

https://github.com/llvm/llvm-project/pull/123516


More information about the Mlir-commits mailing list