* loop.c (loop_regs_scan): Avoid useless generation of REG objects.

From-SVN: r54513
This commit is contained in:
Jeff Law 2002-06-11 10:49:14 -06:00 committed by Jeff Law
parent 1bb1f121fe
commit 603b4b9210
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
2002-06-11 Jeffrey Law <law@redhat.com>
* loop.c (loop_regs_scan): Avoid useless generation of REG objects.
* mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
not the pattern. So extract the pattern from the insn.

View File

@ -9661,7 +9661,7 @@ loop_regs_scan (loop, extra_size)
if (LOOP_INFO (loop)->has_call)
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
if (TEST_HARD_REG_BIT (regs_invalidated_by_call, i)
&& rtx_varies_p (gen_rtx_REG (Pmode, i), /*for_alias=*/1))
&& rtx_varies_p (regno_reg_rtx[i], 1))
{
regs->array[i].may_not_optimize = 1;
regs->array[i].set_in_loop = 1;