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: [PATCH, PR 54394] Compute loops when generating inline summaries


> 
> This is not required to make hints working, it is necessary because of
> the following line a in estimate_function_body_sizes:
> 
> 	      es->loop_depth = bb_loop_depth (bb);
> 
> which always yields zero if we don't have loops computed.  So I can
> skip the computation only if we don't care about loop depths in early
> inlining either.  Should I skip it?

Only place we care is the badness computation and only if profile guessing is off,
so just initialize it to 0 for early inliner.

Honza
> 
> Thanks,
> 
> Martin


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