aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1995-12-09 15:04:27 -0800
committerJim Wilson <wilson@gcc.gnu.org>1995-12-09 15:04:27 -0800
commit06ada9d1c1b11112e676aff4c41a683c67028fbc (patch)
treef58ce8cce1878548ac3592c801c50813d2d377e4 /gcc
parentb49a8bf4357f747a1677f5585148ca54e13fd6a4 (diff)
downloadgcc-06ada9d1c1b11112e676aff4c41a683c67028fbc.zip
gcc-06ada9d1c1b11112e676aff4c41a683c67028fbc.tar.gz
gcc-06ada9d1c1b11112e676aff4c41a683c67028fbc.tar.bz2
(ADDRESS_COST): Define.
From-SVN: r10692
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/sh/sh.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index a322a10..51efc9b 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -1093,6 +1093,13 @@ extern int current_function_anonymous_args;
&& GET_CODE (PATTERN (X)) != CLOBBER \
&& get_attr_type (X) == TYPE_SFUNC))
+/* Compute the cost of an address. For the SH, all valid addresses are
+ the same cost. */
+/* ??? Perhaps we should make reg+reg addresses have higher cost because
+ they add to register pressure on r0. */
+
+#define ADDRESS_COST(RTX) 1
+
/* Compute extra cost of moving data between one register class
and another.