diff options
author | J"orn Rennecke <amylaar@cygnus.co.uk> | 1998-05-14 00:50:07 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-05-13 18:50:07 -0600 |
commit | 9dd07f87f3093bf14120a0e7587546c39ec71ef3 (patch) | |
tree | dd32428590bb60ec48b51dac14e7db8e926196b6 | |
parent | 029b38ff0437ff2ea5fc84c8e026d6f055727194 (diff) | |
download | gcc-9dd07f87f3093bf14120a0e7587546c39ec71ef3.zip gcc-9dd07f87f3093bf14120a0e7587546c39ec71ef3.tar.gz gcc-9dd07f87f3093bf14120a0e7587546c39ec71ef3.tar.bz2 |
* loop.c (scan_loop): Don't call move_moveables for optimize_size.
From-SVN: r19736
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/loop.c | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 807e2b9..b8964b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -7,6 +7,8 @@ Thu May 14 08:41:46 1998 J"orn Rennecke <amylaar@cygnus.co.uk> 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. @@ -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. */ |