Re: ipa-cp heuristic tweek

2015-04-03 Thread Jan Hubicka
> 2015-03-31 15:32 GMT+03:00 Ilya Enkovich : > > 2015-03-29 18:43 GMT+03:00 Jan Hubicka : > >> +static bool > >> +set_single_call_flag (cgraph_node *node, void *) > >> +{ > >> + cgraph_edge *cs = node->callers; > >> + /* Local thunks can be handled transparently, skip them. */ > >> + while (cs

Re: ipa-cp heuristic tweek

2015-04-03 Thread Ilya Enkovich
2015-03-31 15:32 GMT+03:00 Ilya Enkovich : > 2015-03-29 18:43 GMT+03:00 Jan Hubicka : >> +static bool >> +set_single_call_flag (cgraph_node *node, void *) >> +{ >> + cgraph_edge *cs = node->callers; >> + /* Local thunks can be handled transparently, skip them. */ >> + while (cs && cs->caller->t

Re: ipa-cp heuristic tweek

2015-03-31 Thread Ilya Enkovich
2015-03-29 18:43 GMT+03:00 Jan Hubicka : > Hi, > this patch improve crafty performance by avoiding ipa-cp clonning of > Search function that specializes the first iteration of the recursion. > The patch is by Martin, I only tested it and cleaned up code in count_callers > and set_single_call_flag >

Re: ipa-cp heuristic tweek

2015-03-30 Thread Jan Hubicka
> > Index: ipa-cp.c > > === > > --- ipa-cp.c(revision 221757) > > +++ ipa-cp.c(working copy) > > @@ -811,6 +811,41 @@ set_all_contains_variable (struct ipcp_p > >return ret; > > } > > > > +/* Worker of call_for_s

Re: ipa-cp heuristic tweek

2015-03-30 Thread Martin Jambor
Hi, On Sun, Mar 29, 2015 at 05:43:20PM +0200, Jan Hubicka wrote: > Hi, thanks for committing the patch, I'm just wondering why... > this patch improve crafty performance by avoiding ipa-cp clonning of > Search function that specializes the first iteration of the recursion. > The patch is by Mart

ipa-cp heuristic tweek

2015-03-29 Thread Jan Hubicka
Hi, this patch improve crafty performance by avoiding ipa-cp clonning of Search function that specializes the first iteration of the recursion. The patch is by Martin, I only tested it and cleaned up code in count_callers and set_single_call_flag Bootstrapped/regtested x86_64-linux, comitted.