[Mlir-commits] [mlir] [mlir][linalg] Fix memory leak in `pack-dynamic-inner-tile.mlir` (PR #137589)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 28 00:34:57 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Matthias Springer (matthias-springer)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/137589.diff
1 Files Affected:
- (modified) mlir/test/Integration/Dialect/Linalg/CPU/pack-dynamic-inner-tile.mlir (+6-2)
``````````diff
diff --git a/mlir/test/Integration/Dialect/Linalg/CPU/pack-dynamic-inner-tile.mlir b/mlir/test/Integration/Dialect/Linalg/CPU/pack-dynamic-inner-tile.mlir
index 7b410ccee9633..187d7b862604b 100644
--- a/mlir/test/Integration/Dialect/Linalg/CPU/pack-dynamic-inner-tile.mlir
+++ b/mlir/test/Integration/Dialect/Linalg/CPU/pack-dynamic-inner-tile.mlir
@@ -125,9 +125,13 @@ module @transforms attributes { transform.with_named_sequence } {
%bufferize = transform.bufferization.one_shot_bufferize %module
{bufferize_function_boundaries=true} : (!transform.any_op) -> !transform.any_op
- // 5. Canonicalize
+ // 5. Deallocate buffers.
%func_op_bufferized = transform.structured.match ops{["func.func"]} in %bufferize : (!transform.any_op) -> !transform.op<"func.func">
- transform.apply_patterns to %func_op_bufferized {
+ %func_op_deallocated = transform.apply_registered_pass "buffer-deallocation-pipeline" to %func_op_bufferized
+ : (!transform.op<"func.func">) -> !transform.op<"func.func">
+
+ // 6. Canonicalize
+ transform.apply_patterns to %func_op_deallocated {
transform.apply_patterns.canonicalization
} : !transform.op<"func.func">
``````````
</details>
https://github.com/llvm/llvm-project/pull/137589
More information about the Mlir-commits
mailing list