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.
}
}
- /* 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;