[Mlir-commits] [mlir] Fix recursive DI variant part (PR #225373)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Sep 22 04:24:58 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-bufferization
Author: purnima shrivastava (purnima-nlp)
<details>
<summary>Changes</summary>
`mlir::translateModuleToLLVMIR` could leave recursive `DICompositeType` metadata unresolved when the composite used `DW_TAG_variant_part`.
`DW_TAG_variant_part` was not emitted as a distinct `DICompositeType`, unlike other recursive composite type tags. This change adds it to the distinct path and adds a regression test covering the recursive variant-part case.
Testing:
* `mlir/test/Target/LLVMIR/llvmir-debug.mlir`
* `ninja -C build check-mlir`
Fixes: #<!-- -->225151
---
Full diff: https://github.com/llvm/llvm-project/pull/225373.diff
4 Files Affected:
- (modified) mlir/lib/Dialect/Bufferization/Transforms/BufferOptimizations.cpp (+27-12)
- (modified) mlir/lib/Target/LLVMIR/DebugTranslation.cpp (+1)
- (modified) mlir/test/Dialect/Bufferization/Transforms/buffer-loop-hoisting.mlir (+82)
- (modified) mlir/test/Target/LLVMIR/llvmir-debug.mlir (+22)
``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````
</details>
https://github.com/llvm/llvm-project/pull/225373
More information about the Mlir-commits
mailing list