[Mlir-commits] [mlir] [MLIR][LLVM][Mem2Reg] Extends support for partial stores (PR #89740)

Christian Ulmann llvmlistbot at llvm.org
Tue Apr 23 07:46:28 PDT 2024


================
@@ -601,7 +601,7 @@ void MemorySlotPromoter::removeBlockingUses() {
 }
 
 void MemorySlotPromoter::promoteSlot() {
-  computeReachingDefInRegion(slot.ptr.getParentRegion(), {});
+  computeReachingDefInRegion(slot.ptr.getParentRegion(), getLazyDefaultValue());
----------------
Dinistro wrote:

The "Lazy" is not related to where it is called, but to the fact that the function will create the default value on first call, and not eagerly.
Can still change the name, though.

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


More information about the Mlir-commits mailing list