Undo one misguided optimization attempt in previous change.

From-SVN: r30915
This commit is contained in:
Bernd Schmidt 1999-12-14 12:40:02 +00:00 committed by Bernd Schmidt
parent 0a326ec99a
commit e483bf9c62
2 changed files with 8 additions and 10 deletions

View File

@ -1,5 +1,8 @@
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.

View File

@ -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;