Re: CALL_USED_REGISTERS per function basis

2010-08-18 Thread Richard Henderson
On 08/18/2010 01:02 PM, Michael Meissner wrote: > Cool. I've been hoping to get the decks cleared, and add the power support as > well. Adding ppc support would be Really Nice. At the moment I appear to be limited to #ifdef __ALTIVEC__. r~

Re: CALL_USED_REGISTERS per function basis

2010-08-18 Thread Michael Meissner
On Wed, Aug 18, 2010 at 12:56:47PM -0700, Richard Henderson wrote: > On 08/18/2010 12:06 PM, Michael Meissner wrote: > > Now, unfortunately, I've been away from the code for about 2 years, and I > > don't > > know whether it has bit-rotted or not. > > It hasn't. In fact, the Vectorize _cpp_clean

Re: CALL_USED_REGISTERS per function basis

2010-08-18 Thread Richard Henderson
On 08/18/2010 12:06 PM, Michael Meissner wrote: > Now, unfortunately, I've been away from the code for about 2 years, and I > don't > know whether it has bit-rotted or not. It hasn't. In fact, the Vectorize _cpp_clean_line thread contains a patch that uses it. Not quite ready to commit, but nea

Re: CALL_USED_REGISTERS per function basis

2010-08-18 Thread Michael Meissner
On Thu, Aug 05, 2010 at 03:48:55PM +0200, Claudiu Zissulescu wrote: > Hi, > > I want to use a different CALL_USED_REGISTER set per individual > function. The issue here is to inform a caller about the callee > CALL_USED_REGISTERS and save/restore at caller level the possible > altered registers.

Re: CALL_USED_REGISTERS per function basis

2010-08-09 Thread Richard Henderson
On 08/09/2010 07:20 AM, Claudiu Zissulescu wrote: > I set to zero all CALL_USED_REGISTERS (except the fixed regs), and > then in the expand_call I set CALL_INSN_FUNCTION_USAGE to the list of > clobbered registers (given by attribute attached to a function > declaration). Then, I should be able to

Re: CALL_USED_REGISTERS per function basis

2010-08-09 Thread Claudiu Zissulescu
Hi, I am thinking (as I am not familiar with IRA) to the following alternative to your solution: I set to zero all CALL_USED_REGISTERS (except the fixed regs), and then in the expand_call I set CALL_INSN_FUNCTION_USAGE to the list of clobbered registers (given by attribute attached to a function

Re: CALL_USED_REGISTERS per function basis

2010-08-05 Thread Richard Henderson
On 08/05/2010 06:48 AM, Claudiu Zissulescu wrote: > I want to use a different CALL_USED_REGISTER set per individual > function. The issue here is to inform a caller about the callee > CALL_USED_REGISTERS and save/restore at caller level the possible > altered registers. This should reduce the numb

CALL_USED_REGISTERS per function basis

2010-08-05 Thread Claudiu Zissulescu
Hi, I want to use a different CALL_USED_REGISTER set per individual function. The issue here is to inform a caller about the callee CALL_USED_REGISTERS and save/restore at caller level the possible altered registers. This should reduce the number of saved/restored operation in a function. Can so