Re: [PATCH, ARM] Enable fuse-caller-save for ARM

2014-06-25 Thread Tom de Vries
On 19-06-14 18:43, Richard Henderson wrote: On 06/19/2014 09:37 AM, Tom de Vries wrote: On 19-06-14 05:59, Richard Henderson wrote: On 06/01/2014 04:27 AM, Tom de Vries wrote: + if (TARGET_AAPCS_BASED) +{ + /* For AAPCS, IP and CC can be clobbered by veneers inserted by the + lin

Re: [PATCH, ARM] Enable fuse-caller-save for ARM

2014-06-19 Thread Richard Henderson
On 06/19/2014 09:37 AM, Tom de Vries wrote: > On 19-06-14 05:59, Richard Henderson wrote: >> On 06/01/2014 04:27 AM, Tom de Vries wrote: >>> + if (TARGET_AAPCS_BASED) >>> +{ >>> + /* For AAPCS, IP and CC can be clobbered by veneers inserted by the >>> + linker. We need to add these t

Re: [PATCH, ARM] Enable fuse-caller-save for ARM

2014-06-19 Thread Tom de Vries
On 19-06-14 05:59, Richard Henderson wrote: On 06/01/2014 04:27 AM, Tom de Vries wrote: + if (TARGET_AAPCS_BASED) +{ + /* For AAPCS, IP and CC can be clobbered by veneers inserted by the +linker. We need to add these to allow +arm_call_fusage_contains_non_callee_clobbe

Re: [PATCH, ARM] Enable fuse-caller-save for ARM

2014-06-18 Thread Richard Henderson
On 06/01/2014 04:27 AM, Tom de Vries wrote: > + if (TARGET_AAPCS_BASED) > +{ > + /* For AAPCS, IP and CC can be clobbered by veneers inserted by the > + linker. We need to add these to allow > + arm_call_fusage_contains_non_callee_clobbers to return true. */ > + rtx *fusa

Re: [PATCH, ARM] Enable fuse-caller-save for ARM

2014-06-18 Thread Ramana Radhakrishnan
On Sun, Jun 1, 2014 at 12:27 PM, Tom de Vries wrote: > Richard, > > This patch: > - adds the for TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS required > clobbers in CALL_INSN_FUNCTION_USAGE, > - sets TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS to true, which > enables > the fuse-caller-

[PATCH, ARM] Enable fuse-caller-save for ARM

2014-06-01 Thread Tom de Vries
Richard, This patch: - adds the for TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS required clobbers in CALL_INSN_FUNCTION_USAGE, - sets TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS to true, which enables the fuse-caller-save optimisation, and - adds an arm fuse-caller-save test-case. Bu