[PATCH] Add support for optimization reports.

Diego Novillo dnovillo at google.com
Thu Apr 3 11:22:20 PDT 2014


On Apr 3, 2014 2:14 PM, "Diego Novillo" <dnovillo at google.com> wrote:

>
> But we *do* enable line table information when -Rpass= is given. We
> also enable column information, so all we alter is that we'll be
> emitting dwarf LOCs in final codegen.
>
> If you don't think dwarf LOC generation is fine, we could do one of two
things:
>
> 1- We already have srcloc metadata. It would be a matter of generating
> them on every IR node when -Rpass= is used.

Though, note that this would be a waste since we would have to replicate
the exact same mechanism that -gline-tables-only and -gcolumn-info
implement. For debug build, we'd effectively double the memory used to
store this info.

I have a slight preference for option 2.

> 2- If -Rpass= is used but we found it necessary to force line and
> column table generation, we could note that so that the code generator
> out of the back end does not emit DWARF LOCs. Eric, if this doesn't
> sound silly to you, how hard would it be?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140403/2d309279/attachment.html>


More information about the cfe-commits mailing list