[Mlir-commits] [mlir] [MLIR] Add single definition multiple regions for mem2reg (PR #89107)

Christian Ulmann llvmlistbot at llvm.org
Thu Apr 18 08:06:44 PDT 2024


================
@@ -126,6 +126,9 @@ class MemorySlotPromotionAnalyzer {
   /// returns nothing otherwise.
   std::optional<MemorySlotPromotionInfo> computeInfo();
 
+  /// The slot has single definition or not.
+  auto getSingleDefining() { return singleDefining; };
----------------
Dinistro wrote:

Nit: Don't use auto return types. Rather use a `using` directive to introduce a type alias.

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


More information about the Mlir-commits mailing list