@@ -636,20 +636,36 @@ LogicalResult mlir::tryToPromoteMemorySlots(
// lazily and cached to avoid expensive recomputation.
BlockIndexCache blockIndexCache;
- for (PromotableAllocationOpInterface allocator : allocators) {
-for (MemorySlot slot :
llvmbot wrote:
@llvm/pr-subscribers-mlir-core
Author: Christian Ulmann (Dinistro)
Changes
This commit modifies Mem2Reg's API to always attempt a full promotion on all
the passed in "allocators". This ensures that the pass does not require
unnecessary walks over the regions and improves
https://github.com/Dinistro created
https://github.com/llvm/llvm-project/pull/91464
This commit modifies Mem2Reg's API to always attempt a full promotion on all
the passed in "allocators". This ensures that the pass does not require
unnecessary walks over the regions and improves caching