[Mlir-commits] [mlir] [MLIR][Bufferization] Bail on automatic deallocation to enable reentrant behaviour (PR #72289)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Nov 14 09:11:32 PST 2023
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 5f32bcfbaeff1c5ca0f3d1f5036bcb3c20fe7a25 fc47f547c243ddf1f92f0014924827ea81cfd885 -- mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp b/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
index 73a8836275..9168f72ff3 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
@@ -867,7 +867,8 @@ BufferDeallocation::handleInterface(MemoryEffectOpInterface op) {
// the compiler on perfectly valid code.
if (!op->hasAttr(BufferizationDialect::kManualDeallocation)) {
state.resetOwnerships(operand, block);
- state.updateOwnership(operand, buildBoolValue(builder, op.getLoc(), false));
+ state.updateOwnership(operand,
+ buildBoolValue(builder, op.getLoc(), false));
continue;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72289
More information about the Mlir-commits
mailing list