aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2011-04-09 23:10:45 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2011-04-09 23:10:45 +0400
commitd108e67950032622d9debad3fd95bc5fc8838bca (patch)
tree25f13b9423e5b01037286bbf2f8b57fd290f7e28 /gcc/function.c
parent3411bc59c6a0a9d6d0f6899f1072565a346afacd (diff)
downloadgcc-d108e67950032622d9debad3fd95bc5fc8838bca.zip
gcc-d108e67950032622d9debad3fd95bc5fc8838bca.tar.gz
gcc-d108e67950032622d9debad3fd95bc5fc8838bca.tar.bz2
expr.c (expand_expr_real_1): Use add_to_hard_reg_set function instead of loop.
* 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. From-SVN: r172231
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 14d21c9..c292282 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -2912,12 +2912,8 @@ static void
record_hard_reg_sets (rtx x, const_rtx pat ATTRIBUTE_UNUSED, void *data)
{
HARD_REG_SET *pset = (HARD_REG_SET *)data;
- if (REG_P (x) && REGNO (x) < FIRST_PSEUDO_REGISTER)
- {
- int nregs = hard_regno_nregs[REGNO (x)][GET_MODE (x)];
- while (nregs-- > 0)
- SET_HARD_REG_BIT (*pset, REGNO (x) + nregs);
- }
+ if (REG_P (x) && HARD_REGISTER_P (x))
+ add_to_hard_reg_set (pset, GET_MODE (x), REGNO (x));
}
/* A subroutine of assign_parms. Allocate a pseudo to hold the current