If -Os, set MOVE_RATIO to 3, not 15

From-SVN: r19209
This commit is contained in:
Michael Meissner 1998-04-14 13:20:50 +00:00 committed by Michael Meissner
parent ec8d6ddc83
commit 996d9dacc4
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Tue Apr 14 16:19:03 1998 Michael Meissner <meissner@cygnus.com>
* expr.c (MOVE_RATIO): Set to 3 if optimizing for space.
Tue Apr 14 11:31:28 1998 Krister Walfridsson <cato@df.lth.se>
* i386/bsd386.h (ASM_OUTPUT_ALIGN): Redefine.

View File

@ -208,9 +208,8 @@ static char direct_store[NUM_MACHINE_MODES];
#if defined (HAVE_movstrqi) || defined (HAVE_movstrhi) || defined (HAVE_movstrsi) || defined (HAVE_movstrdi) || defined (HAVE_movstrti)
#define MOVE_RATIO 2
#else
/* A value of around 6 would minimize code size; infinity would minimize
execution time. */
#define MOVE_RATIO 15
/* If we are optimizing for space (-Os), cut down the default move ratio */
#define MOVE_RATIO (optimize_size ? 3 : 15)
#endif
#endif