From: David S. Miller Date: Wed, 9 Jun 2004 18:26:11 +0000 (+0000) Subject: sparc.h (MOVE_RATIO): New definition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5162e02a26ed0bc8ba29a5caae71f807f50c8875;p=gcc.git sparc.h (MOVE_RATIO): New definition. 2004-06-09 David S. Miller * config/sparc/sparc.h (MOVE_RATIO): New definition. From-SVN: r82844 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09d1c8edfa4..388a8bbe14a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-06-09 David S. Miller + + * config/sparc/sparc.h (MOVE_RATIO): New definition. + 2004-06-09 Richard Henderson * basic-block.h (struct edge_def): Add goto_locus. diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 3e0b1c91461..d1c80499970 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -2181,6 +2181,11 @@ do { \ 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