[LLVMdev] DebugInfo and Metadata Store

Devang Patel devang.patel at gmail.com
Wed Nov 25 10:41:54 PST 2009


Hi All,

Now, in llvm trunk we support custom metadata, which can be attached
with llvm instructions. One of the user is "debugging information".
This user is special (not just because it is in llvm svn tree:)
because whenever debug info is available, it is likely that
corresponding metadata is attached with almost all instructions. In
other words, usually it is all or nothing. This means, using Metadata
Store to access debugging information attached with each llvm
instruction is expensive, in terms of compile time. If debugging
information is directly stored inside llvm::Instruction then it speeds
up compile time. In my measurements this speeds up LLVMContext.cpp
compile time (-O0 -g) by almost 10%. I do not see any strong reason to
give up this gain.

Thoughts ? I am attaching tentative patch with this email.
-
Devang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smd.diff
Type: application/octet-stream
Size: 6902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091125/b220c2ee/attachment.obj>


More information about the llvm-dev mailing list