OSDN Git Service

If -Os, set MOVE_RATIO to 3, not 15
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Apr 1998 13:20:50 +0000 (13:20 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Apr 1998 13:20:50 +0000 (13:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19209 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index 1c65054..c1fa5ee 100644 (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.
index c126520..8dfcefb 100644 (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