[Mlir-commits] [mlir] [MLIR] [Mem2Reg] [NFC] Update pass documentation (PR #188140)

Théo Degioanni llvmlistbot at llvm.org
Mon Mar 23 14:55:32 PDT 2026


https://github.com/tdegioanni-nvidia created https://github.com/llvm/llvm-project/pull/188140

In #185036, we added region control flow support but forgot to update the pass declaration documentation. This NFC addresses this.

>From 5d8798aaeb98e0bc90fd8a3466702ba3bab887ce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20Degioanni?= <tdegioanni at nvidia.com>
Date: Mon, 23 Mar 2026 22:54:00 +0100
Subject: [PATCH] fix mem2reg doc

---
 mlir/include/mlir/Transforms/Passes.td | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/mlir/include/mlir/Transforms/Passes.td b/mlir/include/mlir/Transforms/Passes.td
index 20af90e56ee67..8a6228e00aa03 100644
--- a/mlir/include/mlir/Transforms/Passes.td
+++ b/mlir/include/mlir/Transforms/Passes.td
@@ -373,17 +373,14 @@ def Mem2Reg : Pass<"mem2reg"> {
   let description = [{
     This pass removes loads out of and stores into a memory slot, and turns
     them into direct uses of SSA values. This is done generically using the
-    `PromotableAllocationOpInterface`, `PromotableOpInterface` and
-    `PromotableMemOpInterface` interfaces.
+    `PromotableAllocationOpInterface`, `PromotableOpInterface`,
+    `PromotableMemOpInterface` and `PromotableRegionOpInterface` interfaces.
 
     This pass will attempt to compute which definitions of the content of
     the memory slot reach operations that use the memory slot pointer. It
     will rewire or remove operations that use the slot pointer so they no
     longer use it. If any of this is not possible, the IR will be left
     without mutation.
-
-    This pass only supports unstructured control-flow. Promotion of operations
-    within subregions will not happen.
   }];
 
   let options = [



More information about the Mlir-commits mailing list