reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs with inner_regno, not regno.

* reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
        with inner_regno, not regno.
        * rtlanal.c (refers_to_regno_p): Same.

From-SVN: r77370
This commit is contained in:
David Edelsohn 2004-02-06 04:28:46 +00:00 committed by David Edelsohn
parent 5b54717271
commit 403c659ca6
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2004-02-05 David Edelsohn <edelsohn@gnu.org>
* reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
with inner_regno, not regno.
* rtlanal.c (refers_to_regno_p): Same.
2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
* config.gcc: Remove i370 support.

View File

@ -6188,8 +6188,8 @@ refers_to_regno_for_reload_p (unsigned int regno, unsigned int endregno,
{
unsigned int inner_regno = subreg_regno (x);
unsigned int inner_endregno
= inner_regno + (regno < FIRST_PSEUDO_REGISTER
? hard_regno_nregs[regno][GET_MODE (x)] : 1);
= inner_regno + (inner_regno < FIRST_PSEUDO_REGISTER
? hard_regno_nregs[inner_regno][GET_MODE (x)] : 1);
return endregno > inner_regno && regno < inner_endregno;
}

View File

@ -1449,8 +1449,8 @@ refers_to_regno_p (unsigned int regno, unsigned int endregno, rtx x,
{
unsigned int inner_regno = subreg_regno (x);
unsigned int inner_endregno
= inner_regno + (regno < FIRST_PSEUDO_REGISTER
? hard_regno_nregs[regno][GET_MODE (x)] : 1);
= inner_regno + (inner_regno < FIRST_PSEUDO_REGISTER
? hard_regno_nregs[inner_regno][GET_MODE (x)] : 1);
return endregno > inner_regno && regno < inner_endregno;
}