Re: [WIP PATCH] Re: Inefficient end-of-loop value computation - missed optimization somewhere?

2012-02-28 Thread Richard Guenther
On Tue, Feb 28, 2012 at 4:10 PM, Ulrich Weigand wrote: > Richard Guenther wrote: >> On Mon, Feb 20, 2012 at 11:19 PM, Ulrich Weigand wrote: >> > we've noticed that the loop optimizer sometimes inserts weirdly >> > inefficient code to compute the value of an induction variable >> > at the end of t

[WIP PATCH] Re: Inefficient end-of-loop value computation - missed optimization somewhere?

2012-02-28 Thread Ulrich Weigand
Richard Guenther wrote: > On Mon, Feb 20, 2012 at 11:19 PM, Ulrich Weigand wrote: > > we've noticed that the loop optimizer sometimes inserts weirdly > > inefficient code to compute the value of an induction variable > > at the end of the loop. [snip] > The issue is that (start + 1) + 1 * (int) .