[Mlir-commits] [mlir] [mlir] [mem2reg] Fix Mem2Reg attempting to promote in graph regions (PR #104910)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Aug 23 05:21:55 PDT 2024


=?utf-8?q?Théo?= Degioanni
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/104910 at github.com>


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c91cc459d396dd4625d3dbf9a2af6fac8151eb4b bf9fc4690e66c90800bcb15fb8611f6e28eee917 --extensions cpp -- mlir/lib/Transforms/Mem2Reg.cpp mlir/test/lib/Dialect/Test/TestOpDefs.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Transforms/Mem2Reg.cpp b/mlir/lib/Transforms/Mem2Reg.cpp
index 7301952f6b..4bc2bbd12b 100644
--- a/mlir/lib/Transforms/Mem2Reg.cpp
+++ b/mlir/lib/Transforms/Mem2Reg.cpp
@@ -262,7 +262,7 @@ LogicalResult MemorySlotPromotionAnalyzer::computeBlockingUses(
   // therefore be ignored.
   Region *slotPtrRegion = slot.ptr.getParentRegion();
   auto slotPtrRegionOp =
-     dyn_cast<RegionKindInterface>(slotPtrRegion->getParentOp());
+      dyn_cast<RegionKindInterface>(slotPtrRegion->getParentOp());
   if (slotPtrRegionOp &&
       slotPtrRegionOp.getRegionKind(slotPtrRegion->getRegionNumber()) ==
           RegionKind::Graph)

``````````

</details>


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


More information about the Mlir-commits mailing list