[llvm] [mlir] [OMPIRBuilder] Move debug records to correct blocks. (PR #157125)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 09:48:45 PST 2026


timsmith78 wrote:

LGTM.  I have applied this commit on top of a recent upstream commit and run a few of our (HPE's) OpenMP tests both with and without target offload.  I do not see any new failures.  I also took one of our offload tests and dumped the LLVM IR with this branch and compared it to the IR generated by the current upstream compiler.  I can clearly see that #dbg_declares are being moved into the same blocks as the allocas, so I believe that this commit is working as intended. 

I do not yet have commit access to approve or officially review this myself, but I would appreciate if someone else who has commit access would push this through as we would like to see the OpenMP debugging experience improve, and this will help.

https://github.com/llvm/llvm-project/pull/157125


More information about the llvm-commits mailing list