From: Richard Kenner Date: Tue, 28 Jun 1994 09:33:48 +0000 (-0400) Subject: (MEMORY_MOVE_COST): Make processor-dependent. X-Git-Tag: misc/cutover-egcs-0~6366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab4a5fc941f08f7db76538aba22f91bc15fe7a17;p=thirdparty%2Fgcc.git (MEMORY_MOVE_COST): Make processor-dependent. From-SVN: r7577 --- diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 947bc193f785..5b15aa9042b6 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -485,7 +485,11 @@ extern char *rs6000_cpu_string; On the RS/6000, bump this up a bit. */ -#define MEMORY_MOVE_COST(MODE) 6 +#define MEMORY_MOVE_COST(MODE) \ + ((GET_MODE_CLASS (MODE) == MODE_FLOAT \ + && (rs6000_cpu == PROCESSOR_RIOS1 || rs6000_cpu == PROCESSOR_PPC601) \ + ? 3 : 2) \ + + 4) /* Specify the cost of a branch insn; roughly the number of extra insns that should be added to avoid a branch.