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

Tobias Gysi llvmlistbot at llvm.org
Tue Apr 23 09:07:37 PDT 2024


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

`getOrCreateDefaultValue` may be an option then. Feel free to keep the name if you prefer it.

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


More information about the Mlir-commits mailing list