[llvm-dev] Not to consolidate two structs with the same data types (but different names) in configure/make tool chain

Craig Topper via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 6 19:38:03 PST 2019


It's not an "optimization". It's done as part of module merging to create
the preopt.bc file.

~Craig

On Wed, Feb 6, 2019 at 7:18 PM Peng Yu <pengyu.ut at gmail.com> wrote:

> > LTO has to merge the modules from different translation units. Those
> modules very likely have duplicate types in them so LTO merges them to
> avoid wasting memory on duplicates.
>
> But I am checking the *.preopt.bc. Since it is before any
> optimization, I'd expect such merging should not occur.
>
> --
> Regards,
> Peng
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190206/7909eac1/attachment.html>


More information about the llvm-dev mailing list