Undo one misguided optimization attempt in previous change.
From-SVN: r30915
This commit is contained in:
parent
0a326ec99a
commit
e483bf9c62
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue