[PATCH] Fix alignment of data in TypeLocs (PR16144)

Sean Silva silvas at purdue.edu
Wed Jun 5 22:27:42 PDT 2013


On Wed, Jun 5, 2013 at 8:06 PM, Eli Friedman <eli.friedman at gmail.com> wrote:

>
> (1) has a substantial impact on memory usage (something like 1% on
> Cocoa.h), so I'd like to avoid it if possible.
>

They must be a large fraction of our total memory if an alignment change
like that can cause such a large overall impact on memory usage. What
fraction of these TypeLoc's do we actually use?

Aren't TypeLoc's primarily used for diagnostics? (and I presume debug
info?) Why are we creating so many in the first place during a normal run
of the compiler? Could we generate them lazily?

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130605/96cf46e3/attachment.html>


More information about the cfe-commits mailing list