Skip to content

[mlir][memref] Fix memory leaks in print-memref.mlir #137590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

matthias-springer
Copy link
Member

@matthias-springer matthias-springer commented Apr 28, 2025

This fixes the test when running with ASAN.

@llvmbot
Copy link
Member

llvmbot commented Apr 28, 2025

@llvm/pr-subscribers-mlir-memref

@llvm/pr-subscribers-mlir

Author: Matthias Springer (matthias-springer)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/137590.diff

1 Files Affected:

  • (modified) mlir/test/Integration/Dialect/MemRef/print-memref.mlir (+2-1)
diff --git a/mlir/test/Integration/Dialect/MemRef/print-memref.mlir b/mlir/test/Integration/Dialect/MemRef/print-memref.mlir
index 067cb3888e6ab..b7a5dd3afccc1 100644
--- a/mlir/test/Integration/Dialect/MemRef/print-memref.mlir
+++ b/mlir/test/Integration/Dialect/MemRef/print-memref.mlir
@@ -1,6 +1,7 @@
 // RUN: mlir-opt %s \
 // RUN: -one-shot-bufferize="bufferize-function-boundaries" --canonicalize \
-// RUN:   -finalize-memref-to-llvm\
+// RUN:   -buffer-deallocation-pipeline \
+// RUN:   -finalize-memref-to-llvm \
 // RUN:   -convert-func-to-llvm -reconcile-unrealized-casts |\
 // RUN: mlir-runner \
 // RUN:  -e entry -entry-point-result=void  \

@matthias-springer matthias-springer merged commit a9b6185 into main Apr 29, 2025
14 checks passed
@matthias-springer matthias-springer deleted the users/matthias-springer/fix_leak_28_2 branch April 29, 2025 07:43
gizmondo pushed a commit to gizmondo/llvm-project that referenced this pull request Apr 29, 2025
This fixes the test when running with ASAN.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
This fixes the test when running with ASAN.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
This fixes the test when running with ASAN.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
This fixes the test when running with ASAN.
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
This fixes the test when running with ASAN.
Ankur-0429 pushed a commit to Ankur-0429/llvm-project that referenced this pull request May 9, 2025
This fixes the test when running with ASAN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants