mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-01 07:44:05 +08:00
reload1.c (ior_hard_reg_set): Remove.
* reload1.c (ior_hard_reg_set): Remove. (finish_spills): Use IOR_HARD_REG_SET instead of ior_hard_reg_set. From-SVN: r89258
This commit is contained in:
parent
26ebd00db3
commit
00268eb387
@ -1,3 +1,9 @@
|
|||||||
|
2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
|
* reload1.c (ior_hard_reg_set): Remove.
|
||||||
|
(finish_spills): Use IOR_HARD_REG_SET instead of
|
||||||
|
ior_hard_reg_set.
|
||||||
|
|
||||||
2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
|
2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
* sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
|
* sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
|
||||||
|
@ -390,7 +390,6 @@ static void init_elim_table (void);
|
|||||||
static void update_eliminables (HARD_REG_SET *);
|
static void update_eliminables (HARD_REG_SET *);
|
||||||
static void spill_hard_reg (unsigned int, int);
|
static void spill_hard_reg (unsigned int, int);
|
||||||
static int finish_spills (int);
|
static int finish_spills (int);
|
||||||
static void ior_hard_reg_set (HARD_REG_SET *, HARD_REG_SET *);
|
|
||||||
static void scan_paradoxical_subregs (rtx);
|
static void scan_paradoxical_subregs (rtx);
|
||||||
static void count_pseudo (int);
|
static void count_pseudo (int);
|
||||||
static void order_regs_for_reload (struct insn_chain *);
|
static void order_regs_for_reload (struct insn_chain *);
|
||||||
@ -3534,15 +3533,6 @@ spill_hard_reg (unsigned int regno, int cant_eliminate)
|
|||||||
SET_REGNO_REG_SET (&spilled_pseudos, i);
|
SET_REGNO_REG_SET (&spilled_pseudos, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I'm getting weird preprocessor errors if I use IOR_HARD_REG_SET
|
|
||||||
from within EXECUTE_IF_SET_IN_REG_SET. Hence this awkwardness. */
|
|
||||||
|
|
||||||
static void
|
|
||||||
ior_hard_reg_set (HARD_REG_SET *set1, HARD_REG_SET *set2)
|
|
||||||
{
|
|
||||||
IOR_HARD_REG_SET (*set1, *set2);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* After find_reload_regs has been run for all insn that need reloads,
|
/* After find_reload_regs has been run for all insn that need reloads,
|
||||||
and/or spill_hard_regs was called, this function is used to actually
|
and/or spill_hard_regs was called, this function is used to actually
|
||||||
spill pseudo registers and try to reallocate them. It also sets up the
|
spill pseudo registers and try to reallocate them. It also sets up the
|
||||||
@ -3607,14 +3597,14 @@ finish_spills (int global)
|
|||||||
EXECUTE_IF_SET_IN_REG_SET
|
EXECUTE_IF_SET_IN_REG_SET
|
||||||
(&chain->live_throughout, FIRST_PSEUDO_REGISTER, i, rsi)
|
(&chain->live_throughout, FIRST_PSEUDO_REGISTER, i, rsi)
|
||||||
{
|
{
|
||||||
ior_hard_reg_set (pseudo_forbidden_regs + i,
|
IOR_HARD_REG_SET (pseudo_forbidden_regs[i],
|
||||||
&chain->used_spill_regs);
|
chain->used_spill_regs);
|
||||||
}
|
}
|
||||||
EXECUTE_IF_SET_IN_REG_SET
|
EXECUTE_IF_SET_IN_REG_SET
|
||||||
(&chain->dead_or_set, FIRST_PSEUDO_REGISTER, i, rsi)
|
(&chain->dead_or_set, FIRST_PSEUDO_REGISTER, i, rsi)
|
||||||
{
|
{
|
||||||
ior_hard_reg_set (pseudo_forbidden_regs + i,
|
IOR_HARD_REG_SET (pseudo_forbidden_regs[i],
|
||||||
&chain->used_spill_regs);
|
chain->used_spill_regs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user