[PATCH, ARM] emit LDRD epilogue instead of a single LDM return

Greta Yorsh greta.yorsh@arm.com
Wed Apr 17 15:45:00 GMT 2013


Currently, epilogue is not generated in RTL for function that can return
using a single instruction. This patch enables RTL epilogue for such
functions on targets that can benefit from using a sequence of LDRD
instructions in epilogue instead of a single LDM instruction.

No regression on qemu arm-none-eabi with cortex-a15.

Ok for trunk?

Thanks,
Greta

gcc/

2012-10-19  Greta Yorsh  <Greta.Yorsh at arm.com>

        * config/arm/arm.c (use_return_insn): Return 0 for targets that
        can benefit from using a sequence of LDRD instructions in epilogue
        instead of a single LDM instruction.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: no_use_return_insn.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130417/5ce8d54c/attachment.txt>


More information about the Gcc-patches mailing list