diff options
author | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-12 12:21:54 +0000 |
---|---|---|
committer | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-12 12:21:54 +0000 |
commit | 156d021fd15fb43eea4db6ac73b598ecbc4cad45 (patch) | |
tree | 8cf021057a154ee764f855e3ab3a5c4be000fa35 /gcc/config/xtensa/xtensa.h | |
parent | 98de52623f0f498542552dc1fb11bed5f2251597 (diff) | |
download | gcc-156d021fd15fb43eea4db6ac73b598ecbc4cad45.tar.gz |
* config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
Remove macros.
* config/xtensa/xtensa.c (xtensa_register_move_cost,
xtensa_memory_move_cost): New functions.
(TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170071 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/xtensa/xtensa.h')
-rw-r--r-- | gcc/config/xtensa/xtensa.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h index 098855b3c42..0a096cdb5e4 100644 --- a/gcc/config/xtensa/xtensa.h +++ b/gcc/config/xtensa/xtensa.h @@ -723,26 +723,6 @@ typedef struct xtensa_args indexing purposes) so give the MEM rtx a words's mode. */ #define FUNCTION_MODE SImode -/* A C expression for the cost of moving data from a register in - class FROM to one in class TO. The classes are expressed using - the enumeration values such as 'GENERAL_REGS'. A value of 2 is - the default; other values are interpreted relative to that. */ -#define REGISTER_MOVE_COST(MODE, FROM, TO) \ - (((FROM) == (TO) && (FROM) != BR_REGS && (TO) != BR_REGS) \ - ? 2 \ - : (reg_class_subset_p ((FROM), AR_REGS) \ - && reg_class_subset_p ((TO), AR_REGS) \ - ? 2 \ - : (reg_class_subset_p ((FROM), AR_REGS) \ - && (TO) == ACC_REG \ - ? 3 \ - : ((FROM) == ACC_REG \ - && reg_class_subset_p ((TO), AR_REGS) \ - ? 3 \ - : 10)))) - -#define MEMORY_MOVE_COST(MODE, CLASS, IN) 4 - #define BRANCH_COST(speed_p, predictable_p) 3 /* How to refer to registers in assembler output. |