diff options
author | Greta Yorsh <greta.yorsh@arm.com> | 2013-04-17 16:17:10 +0100 |
---|---|---|
committer | Greta Yorsh <gretay@gcc.gnu.org> | 2013-04-17 16:17:10 +0100 |
commit | 367075fe242c10042024b5866dc2934f5f9b9c37 (patch) | |
tree | 321ae24cf53cc9787f34541b1e88e23e12a8efe7 /gcc | |
parent | 6d10a20360548761a923c4b7d2a1257fd9029227 (diff) | |
download | gcc-367075fe242c10042024b5866dc2934f5f9b9c37.zip gcc-367075fe242c10042024b5866dc2934f5f9b9c37.tar.gz gcc-367075fe242c10042024b5866dc2934f5f9b9c37.tar.bz2 |
2013-04-17 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.
From-SVN: r198029
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e6f3f1..41c9a33 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-04-17 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. + 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org> PR 45688 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index bac709f..9088d1a 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2412,6 +2412,10 @@ use_return_insn (int iscond, rtx sibling) if (IS_INTERRUPT (func_type) && (frame_pointer_needed || TARGET_THUMB)) return 0; + if (TARGET_LDRD && current_tune->prefer_ldrd_strd + && !optimize_function_for_size_p (cfun)) + return 0; + offsets = arm_get_frame_offsets (); stack_adjust = offsets->outgoing_args - offsets->saved_regs; |