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: Delay RTL initialization until it is really needed


Jan Hubicka <hubicka@ucw.cz> writes:
>> Index: gcc/toplev.c
>> ===================================================================
>> --- gcc/toplev.c	2014-07-11 11:54:41.604838961 +0100
>> +++ gcc/toplev.c	2014-07-16 08:22:36.226034738 +0100
>> @@ -1604,6 +1604,10 @@ backend_init_target (void)
>>       on a mode change.  */
>>    init_expmed ();
>>    init_lower_subreg ();
>> +  init_set_costs ();
>> +
>> +  init_expr_target ();
>> +  ira_init ();
>
> ira_init is the most expensive part of our intialization, this change
> seems to make
> it unconditoinal at astartup again that is somewhat unfortunate.

No, this is backend_init_target, which is only called from
initialize_rtl.  The patch just means that initialize_rtl calls
ira_init indirectly via backend_init_target rather than directly
in initialize_rtl itself.

Thanks,
Richard


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