[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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev