OSDN Git Service

* config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 May 2011 11:24:14 +0000 (11:24 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 May 2011 11:24:14 +0000 (11:24 +0000)
stores.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173616 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rx/rx.c

index a5f2cef..69cc12b 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-10  Nick Clifton  <nickc@redhat.com>
+
+       * config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
+       stores.
+
 2011-05-10  DJ Delorie  <dj@redhat.com>
 
        * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
index f56e779..6fd1153 100644 (file)
@@ -2595,7 +2595,7 @@ rx_trampoline_init (rtx tramp, tree fndecl, rtx chain)
 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.  */