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> 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.c (loop_max_reg): New static variable.
(loop_optimize): Initialize it. Eliminate one unnecessary call to (loop_optimize): Initialize it. Eliminate one unnecessary call to
max_reg_num. max_reg_num.
......
...@@ -948,18 +948,13 @@ reload (first, global, dumpfile) ...@@ -948,18 +948,13 @@ reload (first, global, dumpfile)
} }
} }
/* No point in trying to select reload registers if we know we're select_reload_regs (dumpfile);
going to re-run everything again. */ if (failure)
if (! something_changed) goto failed;
{
select_reload_regs (dumpfile);
if (failure) if (insns_need_reload != 0 || did_spill)
goto failed; something_changed |= finish_spills (global, dumpfile);
if (insns_need_reload != 0 || did_spill)
something_changed |= finish_spills (global, dumpfile);
}
if (! something_changed) if (! something_changed)
break; 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