Commit a1d8754e by Nick Clifton Committed by Nick Clifton

rx.c (rx_memory_move_cost): Include cost of register moves.

	* config/rx/rx.c (rx_memory_move_cost): Include cost of register
	moves.

From-SVN: r173824
parent 39960f7a
2011-05-17 Nick Clifton <nickc@redhat.com> 2011-05-17 Nick Clifton <nickc@redhat.com>
* config/rx/rx.c (rx_memory_move_cost): Include cost of register
moves.
* config/rx/rx.md: Add peephole to remove redundant extensions * config/rx/rx.md: Add peephole to remove redundant extensions
after loads. after loads.
(bitset_in_memory): Use rx_restricted_mem_operand. (bitset_in_memory): Use rx_restricted_mem_operand.
......
...@@ -2638,7 +2638,7 @@ rx_trampoline_init (rtx tramp, tree fndecl, rtx chain) ...@@ -2638,7 +2638,7 @@ rx_trampoline_init (rtx tramp, tree fndecl, rtx chain)
static int static int
rx_memory_move_cost (enum machine_mode mode, reg_class_t regclass, bool in) rx_memory_move_cost (enum machine_mode mode, reg_class_t regclass, bool in)
{ {
return (in ? 2 : 0) + memory_move_secondary_cost (mode, regclass, in); return (in ? 2 : 0) + REGISTER_MOVE_COST (mode, regclass, regclass);
} }
/* Convert a CC_MODE to the set of flags that it represents. */ /* Convert a CC_MODE to the set of flags that it represents. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment