[Mlir-commits] [mlir] [MLIR][Transforms] Fix Mem2Reg removal order to respect dominance (PR #68687)

Tobias Gysi llvmlistbot at llvm.org
Tue Oct 10 04:34:28 PDT 2023


================
@@ -106,7 +106,7 @@ struct MemorySlotPromotionInfo {
   /// its uses, it is because the defining ops of the blocking uses requested
   /// it. The defining ops therefore must also have blocking uses or be the
   /// starting point of the bloccking uses.
-  DenseMap<Operation *, SmallPtrSet<OpOperand *, 4>> userToBlockingUses;
+  llvm::MapVector<Operation *, SmallPtrSet<OpOperand *, 4>> userToBlockingUses;
----------------
gysit wrote:

Any chance we can introduce a typedef since this type is quite long:
```
using llvm::MapVector<Operation *, SmallPtrSet<OpOperand *, 4>> BlockingUsesMap;
```


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


More information about the Mlir-commits mailing list