summaryrefslogtreecommitdiff
path: root/gcc/sel-sched.c
diff options
context:
space:
mode:
authoraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-09 19:10:45 +0000
committeraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-09 19:10:45 +0000
commitd82cf2b25062950d76be8016b80112dc1cb35519 (patch)
tree25f13b9423e5b01037286bbf2f8b57fd290f7e28 /gcc/sel-sched.c
parent69c7c3a1f42a1ce9022c2b5e5f9263bf59d78840 (diff)
downloadgcc-d82cf2b25062950d76be8016b80112dc1cb35519.tar.gz
* expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
instead of loop. * sel-sched.c (mark_unavailable_hard_regs): Likewise. * function.c (record_hard_reg_sets): Likewise. * ira.c (compute_regs_asm_clobbered): Likewise. * sched-deps.c (sched_analyze_1): Likewise. * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched.c')
-rw-r--r--gcc/sel-sched.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c
index e298208ddb5..8a012acec9d 100644
--- a/gcc/sel-sched.c
+++ b/gcc/sel-sched.c
@@ -1263,17 +1263,12 @@ mark_unavailable_hard_regs (def_t def, struct reg_rename *reg_rename_p,
FIXME: it is enough to do this once per all original defs. */
if (frame_pointer_needed)
{
- int i;
-
- for (i = hard_regno_nregs[FRAME_POINTER_REGNUM][Pmode]; i--;)
- SET_HARD_REG_BIT (reg_rename_p->unavailable_hard_regs,
- FRAME_POINTER_REGNUM + i);
+ add_to_hard_reg_set (&reg_rename_p->unavailable_hard_regs,
+ Pmode, FRAME_POINTER_REGNUM);
-#if !HARD_FRAME_POINTER_IS_FRAME_POINTER
- for (i = hard_regno_nregs[HARD_FRAME_POINTER_REGNUM][Pmode]; i--;)
- SET_HARD_REG_BIT (reg_rename_p->unavailable_hard_regs,
- HARD_FRAME_POINTER_REGNUM + i);
-#endif
+ if (!HARD_FRAME_POINTER_IS_FRAME_POINTER)
+ add_to_hard_reg_set (&reg_rename_p->unavailable_hard_regs,
+ Pmode, HARD_FRAME_POINTER_IS_FRAME_POINTER);
}
#ifdef STACK_REGS