Thu May 14 02:17:17 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
+ * loop.c (scan_loop): Don't call move_moveables for optimize_size.
+
* reload1.c (merge_assigned_reloads): When merging, reset
reload_spill_index for the eliminated reload.
combine_movables (movables, nregs);
/* Now consider each movable insn to decide whether it is worth moving.
- Store 0 in n_times_set for each reg that is moved. */
+ Store 0 in n_times_set for each reg that is moved.
- move_movables (movables, threshold,
- insn_count, loop_start, end, nregs);
+ Generally this increases code size, so do not move moveables when
+ optimizing for code size. */
+
+ if (! optimize_size)
+ move_movables (movables, threshold,
+ insn_count, loop_start, end, nregs);
/* Now candidates that still are negative are those not moved.
Change n_times_set to indicate that those are not actually invariant. */