Re: Make regcprop to eliminate noop moves better

2016-09-23 Thread Jan Hubicka
> On 09/22/2016 01:48 PM, Jan Hubicka wrote: > > > > * postreload.c (reload_cse_simplify): Also accept USE in noop move > > patterns. > > > >diff --git a/gcc/postreload.c b/gcc/postreload.c > >index 61c1ce8..4f3a526 100644 > >--- a/gcc/postreload.c > >+++ b/gcc/postreload.c > >@@ -153,7 +15

Re: Make regcprop to eliminate noop moves better

2016-09-22 Thread Bernd Schmidt
On 09/22/2016 01:48 PM, Jan Hubicka wrote: * postreload.c (reload_cse_simplify): Also accept USE in noop move patterns. diff --git a/gcc/postreload.c b/gcc/postreload.c index 61c1ce8..4f3a526 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -153,7 +153,8 @@ reload_cse_sim

Re: Make regcprop to eliminate noop moves better

2016-09-22 Thread Jan Hubicka
> > while working on the GCN port I ended up with many redundant register copies > > of the form > > mov reg, exec > > do something > > mov reg, exec > > do something > > ... > > these copies are generated by LRA because exec is small register class and > > needs a lot of reloading (it could b

Re: Make regcprop to eliminate noop moves better

2016-09-21 Thread Eric Botcazou
> while working on the GCN port I ended up with many redundant register copies > of the form > mov reg, exec > do something > mov reg, exec > do something > ... > these copies are generated by LRA because exec is small register class and > needs a lot of reloading (it could be improved too, bu

Re: Make regcprop to eliminate noop moves better

2016-09-19 Thread Jeff Law
On 09/18/2016 06:42 AM, Jan Hubicka wrote: Hi, while working on the GCN port I ended up with many redundant register copies of the form mov reg, exec do something mov reg, exec do something ... these copies are generated by LRA because exec is small register class and needs a lot of reloadin

Make regcprop to eliminate noop moves better

2016-09-18 Thread Jan Hubicka
Hi, while working on the GCN port I ended up with many redundant register copies of the form mov reg, exec do something mov reg, exec do something ... these copies are generated by LRA because exec is small register class and needs a lot of reloading (it could be improved too, but I do not car