Re: [RFC][AArch64] Define TARGET_SPILL_CLASS

2014-06-05 Thread Ramana Radhakrishnan
>> I don't think increasing GP2FP and FP2GP costs is a bad thing. In a >> number of benchmarks we've seen increased moves between FP and integer >> registers and having this fix appears to help some of them. However >> moving this to generic model needs more benchmarking across a variety >> of core

Re: [RFC][AArch64] Define TARGET_SPILL_CLASS

2014-06-05 Thread Marcus Shawcroft
On 5 June 2014 09:29, Ramana Radhakrishnan wrote: >> >> Thanks Richard for the comments. My primary intention here is to use >> TARGET_SPILL_CLASS to make FP_REGS as spill registers. > >> Do you think >> AArch64 can benefit from TARGET_SPILL_CLASS hook. I agree that just >> increasing GP2FP and FP

Re: [RFC][AArch64] Define TARGET_SPILL_CLASS

2014-06-05 Thread Ramana Radhakrishnan
> > Thanks Richard for the comments. My primary intention here is to use > TARGET_SPILL_CLASS to make FP_REGS as spill registers. > Do you think > AArch64 can benefit from TARGET_SPILL_CLASS hook. I agree that just > increasing GP2FP and FP2GP for all the modes as I am doing is not the > right thi

Re: [RFC][AArch64] Define TARGET_SPILL_CLASS

2014-05-27 Thread Kugan
On 22/05/14 22:18, Richard Earnshaw wrote: > On 22/05/14 00:44, Kugan wrote: >> Compiling some applications with -mgeneral-regs-only produces better >> code (runs faster) compared to not using it. The difference here is that >> when -mgeneral-regs-only is not used, floating point register are als

Re: [RFC][AArch64] Define TARGET_SPILL_CLASS

2014-05-22 Thread Richard Earnshaw
On 22/05/14 00:44, Kugan wrote: > Compiling some applications with -mgeneral-regs-only produces better > code (runs faster) compared to not using it. The difference here is that > when -mgeneral-regs-only is not used, floating point register are also > used in register allocation. Then IRA/LRA has

Re: [RFC][AArch64] Define TARGET_SPILL_CLASS

2014-05-21 Thread Andrew Pinski
On Wed, May 21, 2014 at 4:44 PM, Kugan wrote: > Compiling some applications with -mgeneral-regs-only produces better > code (runs faster) compared to not using it. The difference here is that > when -mgeneral-regs-only is not used, floating point register are also > used in register allocation. Th

[RFC][AArch64] Define TARGET_SPILL_CLASS

2014-05-21 Thread Kugan
Compiling some applications with -mgeneral-regs-only produces better code (runs faster) compared to not using it. The difference here is that when -mgeneral-regs-only is not used, floating point register are also used in register allocation. Then IRA/LRA has to move them to core registers before pe