This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[SPARC] MOVE_RATIO
- From: "David S. Miller" <davem at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Jun 2004 11:23:31 -0700
- Subject: [SPARC] MOVE_RATIO
The default for non-optimize-for-space case emits way too
much code on sparc (~32 instructions). Chop it in half to
get something more reasonable.
Only applied to mainline.
2004-06-09 David S. Miller <davem@nuts.davemloft.net>
* config/sparc/sparc.h (MOVE_RATIO): New definition.
--- config/sparc/sparc.h.~1.253.~ 2004-05-31 14:34:26.000000000 -0700
+++ config/sparc/sparc.h 2004-06-06 21:40:02.000000000 -0700
@@ -2181,6 +2181,11 @@
in one reasonably fast instruction. */
#define MOVE_MAX 8
+/* If a memory-to-memory move would take MOVE_RATIO or more simple
+ move-instruction pairs, we will do a movstr or libcall instead. */
+
+#define MOVE_RATIO (optimize_size ? 3 : 8)
+
/* Define if operations between registers always perform the operation
on the full register even if a narrower mode is specified. */
#define WORD_REGISTER_OPERATIONS