Commit 603b4b92 by Jeff Law Committed by Jeff Law

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

From-SVN: r54513
parent 1bb1f121
......@@ -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.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment