diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-01-24 14:56:27 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-01-24 14:56:27 -0800 |
commit | a0a74fda8d82ea0bc8bed0f8c7a092bc5e572291 (patch) | |
tree | 338d08df4de4b5d31093256e4810caac27df8c90 /gcc | |
parent | cf9188c193b9fe24ad8aef22781a177fec2467b1 (diff) | |
download | gcc-a0a74fda8d82ea0bc8bed0f8c7a092bc5e572291.zip gcc-a0a74fda8d82ea0bc8bed0f8c7a092bc5e572291.tar.gz gcc-a0a74fda8d82ea0bc8bed0f8c7a092bc5e572291.tar.bz2 |
(ADDRESS_COST): Define to 1.
From-SVN: r6425
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/sparc/sparc.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index bf7f25d..06f9ee4 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1493,11 +1493,10 @@ extern struct rtx_def *legitimize_pic_address (); return 0; \ return 8; -/* SPARC offers addressing modes which are "as cheap as a register". - See sparc.c (or gcc.texinfo) for details. */ +/* Compute the cost of an address. For the sparc, all valid addresses are + the same cost. */ -#define ADDRESS_COST(RTX) \ - (GET_CODE (RTX) == REG ? 1 : sparc_address_cost (RTX)) +#define ADDRESS_COST(RTX) 1 /* Compute extra cost of moving data between one register class and another. */ |