Re: [PATCH] rs6000 branch probability changes

2017-07-01 Thread Jan Hubicka
> Does the computed value of very_unlikely need to change for the new > scale? Can the profile machinery provide a helper function or macro > instead of the current calculation replicated in many ports? And to answer your first question, there is REG_BR_PROB_BASE scale which is not chnaged by my

Re: [PATCH] rs6000 branch probability changes

2017-07-01 Thread Jan Hubicka
> On Sat, Jul 1, 2017 at 9:06 AM, Jan Hubicka wrote: > >> >> > * config/rs6000/rs6000.c (emit_unlikely_jump): Adjust to new branch > >> >> > probability data type. > >> >> > > >> >> > Index: rs6000.c > >> >> > === > >> >> > --- rs6000

Re: [PATCH] rs6000 branch probability changes

2017-07-01 Thread David Edelsohn
On Sat, Jul 1, 2017 at 9:06 AM, Jan Hubicka wrote: >> >> > * config/rs6000/rs6000.c (emit_unlikely_jump): Adjust to new branch >> >> > probability data type. >> >> > >> >> > Index: rs6000.c >> >> > === >> >> > --- rs6000.c (revision 2

Re: [PATCH] rs6000 branch probability changes

2017-07-01 Thread Jan Hubicka
> >> > * config/rs6000/rs6000.c (emit_unlikely_jump): Adjust to new branch > >> > probability data type. > >> > > >> > Index: rs6000.c > >> > === > >> > --- rs6000.c (revision 249839) > >> > +++ rs6000.c (working copy) > >> > @@ -23514

Re: [PATCH] rs6000 branch probability changes

2017-07-01 Thread David Edelsohn
On Fri, Jun 30, 2017 at 7:18 PM, Segher Boessenkool wrote: > On Fri, Jun 30, 2017 at 10:36:27PM +0100, Ramana Radhakrishnan wrote: >> On Fri, Jun 30, 2017 at 2:36 PM, David Edelsohn wrote: >> > Convert the rs6000 port to use the new API for branch probabilities. >> > >> > Okay? >> > >> > Thanks,

Re: [PATCH] rs6000 branch probability changes

2017-06-30 Thread Segher Boessenkool
On Fri, Jun 30, 2017 at 10:36:27PM +0100, Ramana Radhakrishnan wrote: > On Fri, Jun 30, 2017 at 2:36 PM, David Edelsohn wrote: > > Convert the rs6000 port to use the new API for branch probabilities. > > > > Okay? > > > > Thanks, David > > > > * config/rs6000/rs6000.c (emit_unlikely_jump): Adjust

Re: [PATCH] rs6000 branch probability changes

2017-06-30 Thread Ramana Radhakrishnan
On Fri, Jun 30, 2017 at 2:36 PM, David Edelsohn wrote: > Convert the rs6000 port to use the new API for branch probabilities. > > Okay? > > Thanks, David > > * config/rs6000/rs6000.c (emit_unlikely_jump): Adjust to new branch > probability data type. > > Index: rs6000.c > =

[PATCH] rs6000 branch probability changes

2017-06-30 Thread David Edelsohn
Convert the rs6000 port to use the new API for branch probabilities. Okay? Thanks, David * config/rs6000/rs6000.c (emit_unlikely_jump): Adjust to new branch probability data type. Index: rs6000.c === --- rs6000.c (revision 249839)