Re: [IRA] New register allocator question

2009-01-05 Thread Vladimir Makarov
Bingfeng Mei wrote: I found if I define a new register class that covers both GR_REGS and PR_REGS, the issue can be solved. New IRA spill the predicate register to general regsister first instead of memory. Is this right approach? #define IRA_COVER_CLASSES \ { \ GRP

Re: [IRA] New register allocator question

2009-01-05 Thread Vladimir Makarov
Bingfeng Mei wrote: Hello, I recently ported our GCC to new IRA by following mainline development. The only interface I added is IRA_COVER_CLASSES. Our architecture has predicate register file. When predicate register has to be spilled, the new IRA produces inferior code to the old register a

RE: [IRA] New register allocator question

2009-01-02 Thread Bingfeng Mei
I found if I define a new register class that covers both GR_REGS and PR_REGS, the issue can be solved. New IRA spill the predicate register to general regsister first instead of memory. Is this right approach? #define IRA_COVER_CLASSES \ { \ GRPR_REGS, M_REGS, BXBC