Make inliner to take cgraph SCCs into account

2012-10-28 Thread Jan Hubicka
Hi, this patch implements simple hints on strongly connected components to inliner. It increases badness of inlining functions within the same scc component, since this non-trivial recursive inlining is not win very often and it may blow up stack frames a lot. It also increases the entry points

Re: Make inliner to take cgraph SCCs into account

2012-10-28 Thread Marc Glisse
On Sun, 28 Oct 2012, Jan Hubicka wrote: Bootstrapped/regtested x86_64-linux. Honza * ipa-inline.c (edge_badness): Reduce precision; use scc hints. (inline_small_functions): Fix dumps; update all callees after inlining. * ipa-inline.h (INLINE_HINT_in_scc,

Re: Make inliner to take cgraph SCCs into account

2012-10-28 Thread Jan Hubicka
On Sun, 28 Oct 2012, Jan Hubicka wrote: Bootstrapped/regtested x86_64-linux. Honza * ipa-inline.c (edge_badness): Reduce precision; use scc hints. (inline_small_functions): Fix dumps; update all callees after inlining. * ipa-inline.h (INLINE_HINT_in_scc,

Re: Make inliner to take cgraph SCCs into account

2012-10-28 Thread Jan Hubicka
On Sun, 28 Oct 2012, Jan Hubicka wrote: Bootstrapped/regtested x86_64-linux. Honza * ipa-inline.c (edge_badness): Reduce precision; use scc hints. (inline_small_functions): Fix dumps; update all callees after inlining. * ipa-inline.h (INLINE_HINT_in_scc,