[Mlir-commits] [mlir] [MLIR][buffer-deallocation] Introduce copies only for MemRef typed values. (PR #121582)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jan 3 08:55:48 PST 2025


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 5137c209f0c19668d06e48cc4293e4c01a77c964 3da161bc6fcec2aed264fbc0457f4f372c8b9a7f --extensions cpp -- mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp b/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
index 36edbb3395..c07ca72c60 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/BufferDeallocation.cpp
@@ -309,7 +309,7 @@ private:
     // Add new allocs and additional clone operations.
     for (Value value : valuesToFree) {
       if (!isa<BaseMemRefType>(value.getType())) {
-          continue;
+        continue;
       }
       if (failed(isa<BlockArgument>(value)
                      ? introduceBlockArgCopy(cast<BlockArgument>(value))

``````````

</details>


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


More information about the Mlir-commits mailing list