From 06ada9d1c1b11112e676aff4c41a683c67028fbc Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sat, 9 Dec 1995 15:04:27 -0800 Subject: [PATCH] (ADDRESS_COST): Define. From-SVN: r10692 --- gcc/config/sh/sh.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index a322a108c76..51efc9b516c 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.