Hi Guys,

  I am applying the patch below to improve the rx_memory_move_cost
  function in the RX backend.  This patch is already in the 4.5 branch
  and mainline, but was omitted from the 4.6 branch.

Cheers
  Nick

gcc/ChangeLog
2011-05-10  Nick Clifton  <ni...@redhat.com>

        * config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
        stores.

Index: gcc/config/rx/rx.c
===================================================================
--- gcc/config/rx/rx.c  (revision 173613)
+++ gcc/config/rx/rx.c  (working copy)
@@ -2595,7 +2595,7 @@
 static int
 rx_memory_move_cost (enum machine_mode mode, reg_class_t regclass, bool in)
 {
-  return 2 + memory_move_secondary_cost (mode, regclass, in);
+  return (in ? 2:0) + memory_move_secondary_cost (mode, regclass, in);
 }
 
 /* Convert a CC_MODE to the set of flags that it represents.  */

Reply via email to