[LLVMdev] DebugInfo and Metadata Store
devang.patel at gmail.com
Wed Nov 25 12:41:54 CST 2009
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6901 bytes
Desc: not available
Url : http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20091125/b220c2ee/attachment.obj
More information about the LLVMdev