This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Allow cgraph nodes to change name


Geoff Keating <geoffk@geoffk.org> writes:

> "Zack Weinberg" <zack@codesourcery.com> writes:
>
>> Geoff Keating <geoffk@geoffk.org> writes:
>> 
>> > because without unit-at-a-time, the function is output before GCC
>> > knows it has a different name.  I think we want to make it invalid,
>> > otherwise we have to do unit-at-a-time always which is too expensive
>> > for -O0.
>> 
>> I think we should make unit-at-a-time cheap enough that it can be not
>> just on at -O0, but impossible to turn off.  There are some nice front
>> end cleanups that would fall out of that.
>
> How could you make it "cheap enough"?  Its basic principle is that it
> holds the whole translation unit in memory, and therefore, for some
> (sufficiently large) translation unit on every machine, it will be much
> slower due to running out of RAM.

By making the IR compact enough that this will only happen for
infeasibly large translation units.

It seems likely to me that this is already the case, but I don't have
numbers.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]