Re: [PATCH] rs6000: Tighten register predicates

2012-09-22 Thread David Edelsohn
On Fri, Sep 21, 2012 at 10:11 PM, Segher Boessenkool wrote: > Currently, the register predicates allow a subreg of anything, > including memory or the wrong kind of register. Most other ports > do not allow this. As far as I can see, this doesn't help the > compiler generate better code, potenti

[PATCH] rs6000: Tighten register predicates

2012-09-21 Thread Segher Boessenkool
Currently, the register predicates allow a subreg of anything, including memory or the wrong kind of register. Most other ports do not allow this. As far as I can see, this doesn't help the compiler generate better code, potentially the opposite. This also causes a problem for my (upcoming) add-