reorg.c (mark_set_resources, case REG): A register is set iff "in_dest" is nonzero.

* reorg.c (mark_set_resources, case REG): A register is set iff
	"in_dest" is nonzero.

From-SVN: r2203
This commit is contained in:
Jeff Law 1992-09-21 10:21:38 -06:00
parent cc4710825d
commit 4323a0e11e

View File

@ -522,8 +522,9 @@ mark_set_resources (x, res, in_dest, include_called_routine)
return;
case REG:
for (i = 0; i < HARD_REGNO_NREGS (REGNO (x), GET_MODE (x)); i++)
SET_HARD_REG_BIT (res->regs, REGNO (x) + i);
if (in_dest)
for (i = 0; i < HARD_REGNO_NREGS (REGNO (x), GET_MODE (x)); i++)
SET_HARD_REG_BIT (res->regs, REGNO (x) + i);
return;
}