Re: Minor update for inlining for code size

2012-10-29 Thread Eric Botcazou
> Bootstrapped/regtested x86_64-linux, will commit it shortly. > > Honza > > * gcc.dg/ipa/inline-6.c: New testcase. > * ipa-inline.c (want_inline_function_called_once_p): Rename to ... > (want_inline_function_to_all_callers_p): check also functions with > multiple callers.

Minor update for inlining for code size

2012-10-29 Thread Jan Hubicka
Hi, this patch updates inlining functions called once into inlining functions called multiple times when the overall unit size for inlining everywhere shriks. This is now quite possible in the cases where inline predicates catch some DCE as seen in the silly testcase attached. We already caught mo