Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-08 Thread Richard Guenther
On Mon, Oct 8, 2012 at 12:01 PM, Jan Hubicka wrote: >> On Mon, Oct 8, 2012 at 11:04 AM, Jan Hubicka wrote: >> >> On Mon, Oct 8, 2012 at 4:50 AM, Dehao Chen wrote: >> >> > Attached is the updated patch. Yes, if we add a VRP pass before >> >> > profile pass, this patch would be unnecessary. Should

Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-08 Thread Jan Hubicka
> On Mon, Oct 8, 2012 at 11:04 AM, Jan Hubicka wrote: > >> On Mon, Oct 8, 2012 at 4:50 AM, Dehao Chen wrote: > >> > Attached is the updated patch. Yes, if we add a VRP pass before > >> > profile pass, this patch would be unnecessary. Should we add a VRP > >> > pass? > >> > >> No, we don't want VR

Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-08 Thread Richard Guenther
On Mon, Oct 8, 2012 at 11:04 AM, Jan Hubicka wrote: >> On Mon, Oct 8, 2012 at 4:50 AM, Dehao Chen wrote: >> > Attached is the updated patch. Yes, if we add a VRP pass before >> > profile pass, this patch would be unnecessary. Should we add a VRP >> > pass? >> >> No, we don't want VRP in early opt

Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-08 Thread Jan Hubicka
> On Mon, Oct 8, 2012 at 4:50 AM, Dehao Chen wrote: > > Attached is the updated patch. Yes, if we add a VRP pass before > > profile pass, this patch would be unnecessary. Should we add a VRP > > pass? > > No, we don't want VRP in early optimizations. I am not quite sure about that. VRP 1) make

Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-08 Thread Richard Guenther
On Mon, Oct 8, 2012 at 4:50 AM, Dehao Chen wrote: > Attached is the updated patch. Yes, if we add a VRP pass before > profile pass, this patch would be unnecessary. Should we add a VRP > pass? No, we don't want VRP in early optimizations. Richard. > Thanks, > Dehao > > On Sat, Oct 6, 2012 at 9:

Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-07 Thread Dehao Chen
Attached is the updated patch. Yes, if we add a VRP pass before profile pass, this patch would be unnecessary. Should we add a VRP pass? Thanks, Dehao On Sat, Oct 6, 2012 at 9:38 AM, Jan Hubicka wrote: >> ping^2 >> >> Honza, do you think this patch can make into 4.8 stage 1? > > + if (check

Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-06 Thread Jan Hubicka
> ping^2 > > Honza, do you think this patch can make into 4.8 stage 1? + if (check_value_one ^ integer_onep (val)) Probably better as != (especially because GNU coding standard allows predicates to return more than just boolean) +{ + edge e1; + edge_iterator ei; + tree

Re: [ping patch] Predict for loop exits in short-circuit conditions

2012-10-06 Thread Dehao Chen
ping^2 Honza, do you think this patch can make into 4.8 stage 1? Thanks, Dehao On Wed, Sep 26, 2012 at 2:34 PM, Dehao Chen wrote: > http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01975.html > > Thanks, > Dehao