Re: Scheduler: Allow breaking dependencies by modifying patterns

2012-09-20 Thread Bernd Schmidt
On 09/20/2012 07:42 PM, H.J. Lu wrote: > On Fri, Aug 3, 2012 at 5:05 AM, Bernd Schmidt wrote: >> This patch allows us to change >> >> rn++ >> rm=[rn] >> >> into >> >> rm=[rn + 4] >> rn++ >> > This caused: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54645 The jury is still out on that, but it

Re: Scheduler: Allow breaking dependencies by modifying patterns

2012-09-20 Thread H.J. Lu
On Fri, Aug 3, 2012 at 5:05 AM, Bernd Schmidt wrote: > This patch allows us to change > > rn++ > rm=[rn] > > into > > rm=[rn + 4] > rn++ > > Opportunities to do this are discovered by a mini-pass over the > instructions after generating dependencies and before scheduling a > block. At that point w

Re: Scheduler: Allow breaking dependencies by modifying patterns

2012-09-12 Thread Maxim Kuvyrkov
On 12/09/2012, at 4:34 AM, Vladimir Makarov wrote: > On 08/03/2012 08:05 AM, Bernd Schmidt wrote: >> ... > Ok, thanks. The changes are pretty straightforward. Only just a few > comments. > ... > > Thanks for the patch, Bernd. Sorry for the delay with the review. I thought > that Maxim wri

Re: Scheduler: Allow breaking dependencies by modifying patterns

2012-09-11 Thread Vladimir Makarov
On 08/03/2012 08:05 AM, Bernd Schmidt wrote: This patch allows us to change rn++ rm=[rn] into rm=[rn + 4] rn++ That is an interesting optimization. I think analogous optimization could be done for INC/DEC addressing (probably it might be beneficial for ppc which has such addressing and disp

Re: Scheduler: Allow breaking dependencies by modifying patterns

2012-09-05 Thread Bernd Schmidt
On 08/03/2012 02:05 PM, Bernd Schmidt wrote: > This patch allows us to change > > rn++ > rm=[rn] > > into > > rm=[rn + 4] > rn++ Ping. Bernd

Re: Scheduler: Allow breaking dependencies by modifying patterns

2012-08-15 Thread Maxim Kuvyrkov
On 4/08/2012, at 12:05 AM, Bernd Schmidt wrote: > This patch allows us to change > > rn++ > rm=[rn] > > into > > rm=[rn + 4] > rn++ The patch is OK with the following nitpicks. [BTW, if anyone else wants to review this patch, it helps to read it from the end.] > > Opportunities to do this

Re: Scheduler: Allow breaking dependencies by modifying patterns

2012-08-13 Thread Maxim Kuvyrkov
On 4/08/2012, at 12:05 AM, Bernd Schmidt wrote: > This patch allows us to change > > rn++ > rm=[rn] > > into > > rm=[rn + 4] > rn++ This is a good scheduler optimization that I wanted to have for quite a while. Bernd, kudos for implementing it! I am going to review this patch, and then the