From: J"orn Rennecke Date: Thu, 14 May 1998 00:50:07 +0000 (+0000) Subject: * loop.c (scan_loop): Don't call move_moveables for optimize_size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9dd07f87f3093bf14120a0e7587546c39ec71ef3;p=gcc.git * loop.c (scan_loop): Don't call move_moveables for optimize_size. From-SVN: r19736 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 807e2b9cff1..b8964b385bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -7,6 +7,8 @@ Thu May 14 08:41:46 1998 J"orn Rennecke Thu May 14 02:17:17 1998 J"orn Rennecke + * 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. diff --git a/gcc/loop.c b/gcc/loop.c index 6765b20e61c..9625febe054 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -1063,10 +1063,14 @@ scan_loop (loop_start, end, nregs, unroll_p) 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. */