Re: Fix overflow in loop peeling code

2016-03-30 Thread Jan Hubicka
> Index: tree-ssa-loop-ivcanon.c > > === > > --- tree-ssa-loop-ivcanon.c (revision 234516) > > +++ tree-ssa-loop-ivcanon.c (working copy) > > @@ -935,7 +935,7 @@ try_peel_loop (struct loop *loop, > >edge exit,

Re: Fix overflow in loop peeling code

2016-03-30 Thread Richard Biener
On Wed, Mar 30, 2016 at 12:04 AM, Jan Hubicka wrote: > Hi, > this patch fixes stupid overflow in tree-ssa-loop-ivcanon.c. > If the estimated number of execution of loop is INT_MAX+1 it will get peeled > incorrectly. > > Bootstrapped/regtested x86_64-linux and committed (it is regression WRT the >

Fix overflow in loop peeling code

2016-03-29 Thread Jan Hubicka
Hi, this patch fixes stupid overflow in tree-ssa-loop-ivcanon.c. If the estimated number of execution of loop is INT_MAX+1 it will get peeled incorrectly. Bootstrapped/regtested x86_64-linux and committed (it is regression WRT the RTL implementation) Honza * tree-ssa-loop-ivcanon.c (try_