[LLVMdev] Proposal: release MDNodes for source modules (LTO+debug info)
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Nov 14 05:19:41 PST 2013
> Letting the module own MDNodes may not be a win for gold since it is going
> to create multiple copies of MDNodes that could be shared with Context
> owning MDNodes.
>
> For example, with debug info type uniquing, the type nodes can be shared
> across modules, but with module owning MDNodes, each module will create its
> own copy of the type nodes. The advantage is that the MDNodes can be deleted
> easily by deleting the module. It is not clearly a win to me.
But gold has at most 2 objects loaded at any time.
Cheers,
Rafael
More information about the llvm-dev
mailing list