Skip to content

[mlir][linalg] Fix memory leak in runtime-verification.mlir #137591

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 28, 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

Author: Matthias Springer (matthias-springer)

Changes

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

1 Files Affected:

  • (modified) mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir (+1)
diff --git a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
index 460b198a23339..5a1bcc7d893bc 100644
--- a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
+++ b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
@@ -1,5 +1,6 @@
 // RUN: mlir-opt %s -generate-runtime-verification \
 // RUN: -one-shot-bufferize="bufferize-function-boundaries" \
+// RUN: -buffer-deallocation-pipeline \
 // RUN: -convert-linalg-to-loops \
 // RUN: -expand-strided-metadata \
 // RUN: -lower-affine \

@llvmbot
Copy link
Member

llvmbot commented Apr 28, 2025

@llvm/pr-subscribers-mlir-linalg

Author: Matthias Springer (matthias-springer)

Changes

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

1 Files Affected:

  • (modified) mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir (+1)
diff --git a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
index 460b198a23339..5a1bcc7d893bc 100644
--- a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
+++ b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
@@ -1,5 +1,6 @@
 // RUN: mlir-opt %s -generate-runtime-verification \
 // RUN: -one-shot-bufferize="bufferize-function-boundaries" \
+// RUN: -buffer-deallocation-pipeline \
 // RUN: -convert-linalg-to-loops \
 // RUN: -expand-strided-metadata \
 // RUN: -lower-affine \

@matthias-springer matthias-springer merged commit b8b35b9 into main Apr 28, 2025
14 checks passed
@matthias-springer matthias-springer deleted the users/matthias-springer/fix_leak_28_3 branch April 28, 2025 12:21
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
Ankur-0429 pushed a commit to Ankur-0429/llvm-project that referenced this pull request May 9, 2025
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