Re: Flags and data mixing problem

2011-08-23 Thread Richard Henderson
On 08/23/2011 01:41 PM, Konstantin Vladimirov wrote: > Yes, it is exactly what I have now -- myself optimization pass with > peephole-like rule for such cases. Is it all, that is possible here? Certainly you can do more than peepholes. That's why I told you to look at compare-optimize.c. > May b

Re: Flags and data mixing problem

2011-08-23 Thread Konstantin Vladimirov
On Tue, Aug 23, 2011 at 12:32 PM, Richard Henderson wrote: > On 08/23/2011 12:18 PM, Konstantin Vladimirov wrote: >> Hi, >> >> Register may at the same time hold data and flags for branch, and live >> range for data and for flags may be different -- they are totally >> unrelated. Yes, I allowed mo

Re: Flags and data mixing problem

2011-08-23 Thread Richard Henderson
On 08/23/2011 11:37 AM, Konstantin Vladimirov wrote: > Hi, all > > Consider architecture, where *any* data register have associated flag > field. I.e. any register may be used as a data store to further use, > and as a flag keeper to further branch. I don't understand what you mean by "data store

Flags and data mixing problem

2011-08-23 Thread Konstantin Vladimirov
Hi, all Consider architecture, where *any* data register have associated flag field. I.e. any register may be used as a data store to further use, and as a flag keeper to further branch. Do you have any ideas how to utilize this property in GCC machine description? May be any examples of existing