2015-04-09 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
+ Backport from trunk r219578.
+ 2015-01-14 Joey Ye <joey.ye@arm.com>
+
+ * config/arm/arm.c (arm_compute_save_reg_mask):
+ Do not save lr in case of tail call.
+ * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
+
+2015-04-09 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
+
Backport from trunk r219544.
2015-01-13 Renlin Li <renlin.li@arm.com>
|| (save_reg_mask
&& optimize_size
&& ARM_FUNC_TYPE (func_type) == ARM_FT_NORMAL
+ && !crtl->tail_call_emit
&& !crtl->calls_eh_return))
save_reg_mask |= 1 << LR_REGNUM;
(set_attr "type" "multiple")]
)
+;; Pop a single register as its size is preferred over a post-incremental load
+(define_insn "*thumb2_pop_single"
+ [(set (match_operand:SI 0 "low_register_operand" "=r")
+ (mem:SI (post_inc:SI (reg:SI SP_REGNUM))))]
+ "TARGET_THUMB2 && (reload_in_progress || reload_completed)"
+ "pop\t{%0}"
+ [(set_attr "type" "load1")
+ (set_attr "length" "2")
+ (set_attr "predicable" "yes")]
+)
+
;; We have two alternatives here for memory loads (and similarly for stores)
;; to reflect the fact that the permissible constant pool ranges differ
;; between ldr instructions taking low regs and ldr instructions taking high