Re: [PATCH] Add a new target hook to compute the frame layout

2016-06-22 Thread Bernd Edlinger
On 06/22/16 20:49, Jeff Law wrote: > On 06/21/2016 11:12 PM, Bernd Edlinger wrote: > >> >> What I wanted to say here, is that lra goes thru several iterations, >> changes something in the register allocation that has an impact on the >> frame layout, typically 4-5 times, and calls INITIAL_ELIMINATI

Re: [PATCH] Add a new target hook to compute the frame layout

2016-06-22 Thread Jeff Law
On 06/21/2016 11:12 PM, Bernd Edlinger wrote: What I wanted to say here, is that lra goes thru several iterations, changes something in the register allocation that has an impact on the frame layout, typically 4-5 times, and calls INITIAL_ELIMINATION_OFFSET 3-4 times in a row, and in the result

Re: AW: [PATCH] Add a new target hook to compute the frame layout

2016-06-22 Thread Jeff Law
On 06/22/2016 01:20 AM, Bernd Edlinger wrote: On 06/21/16 23:29, Jeff Law wrote: How does this macro interact with INITIAL_FRAME_POINTER_OFFSET? That I forgot to mention: INITIAL_FRAME_POINTER_OFFSET is just a single call, so whenever it is called from lra/reload the frame layout is really e

AW: [PATCH] Add a new target hook to compute the frame layout

2016-06-22 Thread Bernd Edlinger
On 06/21/16 23:29, Jeff Law wrote: > > How does this macro interact with INITIAL_FRAME_POINTER_OFFSET? That I forgot to mention: INITIAL_FRAME_POINTER_OFFSET is just a single call, so whenever it is called from lra/reload the frame layout is really expected to change, and so it does not make a di

Re: [PATCH] Add a new target hook to compute the frame layout

2016-06-21 Thread Bernd Edlinger
On 06/21/16 23:29, Jeff Law wrote: > On 06/16/2016 08:47 AM, Bernd Edlinger wrote: >> Hi! >> >> >> By the design of the target hook INITIAL_ELIMINATION_OFFSET >> it is necessary to call this function several times with >> different register combinations. >> Most targets use a cached data structure

Re: [PATCH] Add a new target hook to compute the frame layout

2016-06-21 Thread Jeff Law
On 06/16/2016 08:47 AM, Bernd Edlinger wrote: Hi! By the design of the target hook INITIAL_ELIMINATION_OFFSET it is necessary to call this function several times with different register combinations. Most targets use a cached data structure that describes the exact frame layout of the current f

[PATCH] Add a new target hook to compute the frame layout

2016-06-16 Thread Bernd Edlinger
Hi! By the design of the target hook INITIAL_ELIMINATION_OFFSET it is necessary to call this function several times with different register combinations. Most targets use a cached data structure that describes the exact frame layout of the current function. It is safe to skip the computation whe