[LLVMdev] DebugInfo and Metadata Store

Devang Patel devang.patel at gmail.com
Mon Nov 30 10:21:05 PST 2009


On Mon, Nov 30, 2009 at 10:14 AM, Nick Lewycky <nlewycky at google.com> wrote:
> What's the memory usage penalty of that on a
> large program?

I have not measured that yet.

> If we're willing to pay this memory cost, even for programs that aren't
> using debug info, why not just store pointer to a linked list of metadata
> info in the Instruction and remove the MetadataContext? If it's a 10%
> performance win for debug info we should be able to get the exact same win
> across the board for all metadata with no cost beyond what your patch
> already proposes.

It all depends on how metadata is used. I am myself not very thrilled
about this patch (hence requesting feedback first), but I'd try every
possible opportunity to speedup -O0 -g compile time :)

-
Devang



More information about the llvm-dev mailing list