diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2010-07-12 18:53:33 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2010-07-12 18:53:33 +0000 |
commit | 55e78c8cf92151e9395ff9cfe91277b58f7fc1d0 (patch) | |
tree | 191314ba26394a131d04588253375bac451eef17 /gcc/reginfo.c | |
parent | 6642445b2caf5917b0aa341ab998b01796310751 (diff) | |
download | gcc-55e78c8cf92151e9395ff9cfe91277b58f7fc1d0.zip gcc-55e78c8cf92151e9395ff9cfe91277b58f7fc1d0.tar.gz gcc-55e78c8cf92151e9395ff9cfe91277b58f7fc1d0.tar.bz2 |
regs.h (target_regs): Add x_hard_regs_of_mode...
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.
From-SVN: r162090
Diffstat (limited to 'gcc/reginfo.c')
-rw-r--r-- | gcc/reginfo.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/gcc/reginfo.c b/gcc/reginfo.c index c0a300c..f17084c 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]; |