summaryrefslogtreecommitdiff
path: root/gcc/reginfo.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-12 18:53:33 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-12 18:53:33 +0000
commitfee704fa1e3783afa2551a70145ed06cecd48926 (patch)
tree191314ba26394a131d04588253375bac451eef17 /gcc/reginfo.c
parent6d0eb0c4660dc7c6454be5b04f24de84dab27342 (diff)
downloadgcc-fee704fa1e3783afa2551a70145ed06cecd48926.tar.gz
gcc/
* regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost, x_may_move_out_cost and x_last_mode_for_init_move_cost. (have_regs_of_mode, contains_reg_of_mode, move_cost) (may_move_in_cost, may_move_out_cost): Redefine as macros. * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost) (may_move_in_cost, may_move_out_cost): Delete. (last_mode_for_init_move_cost): Redefine as a macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162090 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reginfo.c')
-rw-r--r--gcc/reginfo.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/gcc/reginfo.c b/gcc/reginfo.c
index c0a300c69e9..f17084c46ef 100644
--- a/gcc/reginfo.c
+++ b/gcc/reginfo.c
@@ -118,26 +118,8 @@ static const char *const initial_reg_names[] = REGISTER_NAMES;
/* Array containing all of the register class names. */
const char * reg_class_names[] = REG_CLASS_NAMES;
-/* 1 if there is a register of given mode. */
-bool have_regs_of_mode [MAX_MACHINE_MODE];
-
-/* 1 if class does contain register of given mode. */
-char contains_reg_of_mode [N_REG_CLASSES] [MAX_MACHINE_MODE];
-
-/* Maximum cost of moving from a register in one class to a register in
- another class. Based on TARGET_REGISTER_MOVE_COST. */
-move_table *move_cost[MAX_MACHINE_MODE];
-
-/* Similar, but here we don't have to move if the first index is a subset
- of the second so in that case the cost is zero. */
-move_table *may_move_in_cost[MAX_MACHINE_MODE];
-
-/* Similar, but here we don't have to move if the first index is a superset
- of the second so in that case the cost is zero. */
-move_table *may_move_out_cost[MAX_MACHINE_MODE];
-
-/* Keep track of the last mode we initialized move costs for. */
-static int last_mode_for_init_move_cost;
+#define last_mode_for_init_move_cost \
+ (this_target_regs->x_last_mode_for_init_move_cost)
/* Sample MEM values for use by memory_move_secondary_cost. */
static GTY(()) rtx top_of_stack[MAX_MACHINE_MODE];