aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-05-17 08:58:09 +0000
committerNick Clifton <nickc@gcc.gnu.org>2011-05-17 08:58:09 +0000
commita1d8754e7dffbaa6a987dbfdb71cd6ad0ffbe9b7 (patch)
tree966f08854a927091ebafc0b30d215d7dcbd3ff69
parent39960f7a9f564abf1fc12646a08baf84ad268981 (diff)
downloadgcc-a1d8754e7dffbaa6a987dbfdb71cd6ad0ffbe9b7.zip
gcc-a1d8754e7dffbaa6a987dbfdb71cd6ad0ffbe9b7.tar.gz
gcc-a1d8754e7dffbaa6a987dbfdb71cd6ad0ffbe9b7.tar.bz2
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
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/rx/rx.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9c490d2..1824316 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
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
after loads.
(bitset_in_memory): Use rx_restricted_mem_operand.
diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c
index 2889ceb..6b0ca2e 100644
--- a/gcc/config/rx/rx.c
+++ b/gcc/config/rx/rx.c
@@ -2638,7 +2638,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 (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. */