Re: [PATCH][AArch64] Optimize prolog/epilog

2016-08-01 Thread Richard Earnshaw (lists)
On 29/07/16 12:49, Wilco Dijkstra wrote: > This patch optimizes the prolog and epilog code to reduce the number of > instructions and avoid multiple writes to SP. The key idea is that epilogs > are almost exact reverses of prologs, and thus all the decisions only need > to be taken once. The fram

[PATCH][AArch64] Optimize prolog/epilog

2016-07-29 Thread Wilco Dijkstra
This patch optimizes the prolog and epilog code to reduce the number of instructions and avoid multiple writes to SP. The key idea is that epilogs are almost exact reverses of prologs, and thus all the decisions only need to be taken once. The frame layout is decided in aarch64_layout_frame() and