Re: [patch, fortran] PR 57071, some power optimizations

2013-04-28 Thread Tobias Burnus
Thomas Koenig wrote: Regarding PR 57073, the real case - I have never worked with GIMPLE, so I have no real idea how to start this. Any volunteers? Or should we handle this in the Fortran front end after all? I think one should do it in the middle end. Actually, it shouldn't be that difficul

Re: [patch, fortran] PR 57071, some power optimizations

2013-04-28 Thread Thomas Koenig
Am 28.04.2013 12:10, schrieb Tobias Burnus: OK - thanks for the patch. I wonder whether one should also handle: 1**k == 1 Committed, thanks for the review! I will do 1**k as a followup patch which should be quite obvious :-) Regarding PR 57073, the real case - I have never worked with GI

Re: [patch, fortran] PR 57071, some power optimizations

2013-04-28 Thread Steve Kargl
On Sun, Apr 28, 2013 at 10:32:28AM +0200, Thomas Koenig wrote: > Hello world, > > the attached patch does some optimization on > power using ishft and iand, as discussed in the PR. > > I have left out handling real numbers, that should be left > to the middle-end (PR 57073). > > Regression-teste

Re: [patch, fortran] PR 57071, some power optimizations

2013-04-28 Thread Tobias Burnus
Am 28.04.2013 10:32, schrieb Thomas Koenig: the attached patch does some optimization on power using ishft and iand, as discussed in the PR. I have left out handling real numbers, that should be left to the middle-end (PR 57073). Regression-tested. OK for trunk? OK - thanks for the patch.

[patch, fortran] PR 57071, some power optimizations

2013-04-28 Thread Thomas Koenig
Hello world, the attached patch does some optimization on power using ishft and iand, as discussed in the PR. I have left out handling real numbers, that should be left to the middle-end (PR 57073). Regression-tested. OK for trunk? Thomas 2013-04-28 Thomas Koenig PR fortr