Commit e483bf9c by Bernd Schmidt Committed by Bernd Schmidt

Undo one misguided optimization attempt in previous change.

From-SVN: r30915
parent 0a326ec9
1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
* reload1.c (reload): Can't avoid select_reload_regs/finish_spills
if something changed. Back out that part of yesterday's changes.
* loop.c (loop_max_reg): New static variable.
(loop_optimize): Initialize it. Eliminate one unnecessary call to
max_reg_num.
......
......@@ -948,18 +948,13 @@ reload (first, global, dumpfile)
}
}
/* No point in trying to select reload registers if we know we're
going to re-run everything again. */
if (! something_changed)
{
select_reload_regs (dumpfile);
select_reload_regs (dumpfile);
if (failure)
goto failed;
if (failure)
goto failed;
if (insns_need_reload != 0 || did_spill)
something_changed |= finish_spills (global, dumpfile);
if (insns_need_reload != 0 || did_spill)
something_changed |= finish_spills (global, dumpfile);
}
if (! something_changed)
break;
......
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