[PATCH 1/4] aarch64: Improve epilogue unwind info

Marcus Shawcroft marcus.shawcroft@gmail.com
Wed Sep 3 10:59:00 GMT 2014


On 22 August 2014 23:05, Richard Henderson <rth@redhat.com> wrote:
> Delay cfi restore opcodes until the stack frame is deallocated.
> This reduces the number of cfi advance opcodes required.
>
> We perform a similar optimization in the x86_64 epilogue.
>
>
>         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
>         (aarch64_popwb_pair_reg): Remove.
>         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
>         the restore ops performed by the insns generated.
>         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
>         insn.  Perform the calls_eh_return addition later; do not attempt to
>         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.

OK, thank you. /Marcus



More information about the Gcc-patches mailing list