diff options
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index d821bcf..b791d9d 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -1029,7 +1029,7 @@ cselib_invalidate_regno (unsigned int regno, enum machine_mode mode) else i = regno - max_value_regs; - endregno = regno + hard_regno_nregs[regno][mode]; + endregno = end_hard_regno (mode, regno); } else { @@ -1050,7 +1050,7 @@ cselib_invalidate_regno (unsigned int regno, enum machine_mode mode) unsigned int this_last = i; if (i < FIRST_PSEUDO_REGISTER && v != NULL) - this_last += hard_regno_nregs[i][GET_MODE (v->val_rtx)] - 1; + this_last = end_hard_regno (GET_MODE (v->val_rtx), i) - 1; if (this_last < regno || v == NULL) { |