From 251a613eb0d8871e5d961286b66ce27f1d5ab58b Mon Sep 17 00:00:00 2001 From: aesok Date: Sat, 5 Jun 2010 17:27:51 +0000 Subject: * target.h (struct gcc_target): Add memory_move_cost field. * target-def.h (TARGET_MEMORY_MOVE_COST): New. (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST. * targhooks.c (default_memory_move_cost): New function. * targhooks.h (default_memory_move_cost): Declare function. * reload.h (memory_move_cost): Declare. (memory_move_secondary_cost): Change type of 'in' argument to bool. * reginfo.c (memory_move_cost): New function. (memory_move_secondary_cost): Change type of 'in' argument to bool. * ira.h (ira_memory_move_cost): Update comment. * ira.c: (ira_memory_move_cost): Update comment. (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST with memory_move_cost. * postreload.c (reload_cse_simplify_set): (Ditto.). * reload1.c (choose_reload_regs): (Ditto.). * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New. (MEMORY_MOVE_COST): Revise documentation. * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro. * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove. * config/i386/i386.h (ix86_memory_move_cost): Make static. Change type of 'in' argument to bool. (TARGET_MEMORY_MOVE_COST): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160323 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/reload.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gcc/reload.h') diff --git a/gcc/reload.h b/gcc/reload.h index 8168b51f020..4625bf7fc19 100644 --- a/gcc/reload.h +++ b/gcc/reload.h @@ -30,12 +30,9 @@ along with GCC; see the file COPYING3. If not see SECONDARY_RELOAD_CLASS (CLASS, MODE, X) #endif -/* If MEMORY_MOVE_COST isn't defined, give it a default here. */ -#ifndef MEMORY_MOVE_COST -#define MEMORY_MOVE_COST(MODE,CLASS,IN) \ - (4 + memory_move_secondary_cost ((MODE), (CLASS), (IN))) -#endif -extern int memory_move_secondary_cost (enum machine_mode, enum reg_class, int); +extern int memory_move_cost (enum machine_mode, enum reg_class, bool); +extern int memory_move_secondary_cost (enum machine_mode, enum reg_class, + bool); /* Maximum number of reloads we can need. */ #define MAX_RELOADS (2 * MAX_RECOG_OPERANDS * (MAX_REGS_PER_ADDRESS + 1)) -- cgit v1.2.1