mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-06 09:39:40 +08:00
reload.c (push_reload): When seeing if can reuse a register...
* reload.c (push_reload): When seeing if can reuse a register, check extra registers against widest of INMODE and OUTMODE. From-SVN: r34891
This commit is contained in:
parent
774c79ed27
commit
db30db9938
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
|
||||||
|
* reload.c (push_reload): When seeing if can reuse a register,
|
||||||
|
check extra registers against widest of INMODE and OUTMODE.
|
||||||
|
|
||||||
2000-07-06 Neil Booth <NeilB@earthling.net>
|
2000-07-06 Neil Booth <NeilB@earthling.net>
|
||||||
|
|
||||||
* cpplib.c: (_cpp_parse_assertion): Perform hash lookups
|
* cpplib.c: (_cpp_parse_assertion): Perform hash lookups
|
||||||
|
@ -1470,8 +1470,10 @@ push_reload (in, out, inloc, outloc, class,
|
|||||||
&& GET_MODE_SIZE (outmode) <= GET_MODE_SIZE (GET_MODE (XEXP (note, 0)))
|
&& GET_MODE_SIZE (outmode) <= GET_MODE_SIZE (GET_MODE (XEXP (note, 0)))
|
||||||
&& HARD_REGNO_MODE_OK (regno, outmode))
|
&& HARD_REGNO_MODE_OK (regno, outmode))
|
||||||
{
|
{
|
||||||
int offs;
|
unsigned int offs;
|
||||||
int nregs = HARD_REGNO_NREGS (regno, inmode);
|
unsigned int nregs = MAX (HARD_REGNO_NREGS (regno, inmode),
|
||||||
|
HARD_REGNO_NREGS (regno, outmode));
|
||||||
|
|
||||||
for (offs = 0; offs < nregs; offs++)
|
for (offs = 0; offs < nregs; offs++)
|
||||||
if (fixed_regs[regno + offs]
|
if (fixed_regs[regno + offs]
|
||||||
|| ! TEST_HARD_REG_BIT (reg_class_contents[(int) class],
|
|| ! TEST_HARD_REG_BIT (reg_class_contents[(int) class],
|
||||||
|
Loading…
Reference in New Issue
Block a user