[llvm-dev] Preserving debug metadata across optimization
Jeremy Morse via llvm-dev
llvm-dev at lists.llvm.org
Thu Feb 21 02:41:30 PST 2019
Hi Jan,
On Thu, Feb 21, 2019 at 4:07 AM Jan Vesely via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I've recently run into a problem of missing !dbg metadata after the
> code has been optimized (even opt -O1).
>
> After optimizing the module (even opt -O1) I see that some
> instructions (~25%) don't have any dbg metadata.
>
> The behaviour persists across llvm-6/7/git.
> Is it just a series of bugs that I'm hitting?
>
"A series of bugs" is quite likely, many optimisation passes could preserve
debug information better.
If you happen to have a reproducer, it'd be great if you could file a bug
report blocking one of these umbrella bugs [0, 1] so that it gets looked at.
[0] https://bugs.llvm.org/show_bug.cgi?id=38768
[1] https://bugs.llvm.org/show_bug.cgi?id=31268
--
Thanks,
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190221/b7e2078e/attachment.html>
More information about the llvm-dev
mailing list