[LLVMdev] [Debug Info + LTO] Type Uniquing for C types?
Eric Christopher
echristo at gmail.com
Fri Oct 11 12:40:03 PDT 2013
>> It depends upon the goals. If the goal is to make debug information
>> post-link smaller then just using the type hashing machinery for
>> structs will be sufficient.
>
>
> By "the type hashing machinery for structs", are you referring to the type
> hashing at the back end?
>
I am, yes, since there's no other place we do currently.
>>
>> However, if it's to save space during an
>> LTO link then we'll want to do it in the front end.
>
>
> Yes, my purpose here is to save memory space in number of MDNodes (also # of
> DIEs) generated in a LTO build.
> Type hashing at the DIE level can reduce the dwarf size.
>
I agree with both of these statements.
I also agree with the desire to help LTO memory consumption so we'll
need something from the front end for this since we'd like to continue
to use the folding set to do the uniquing.
-eric
More information about the llvm-dev
mailing list