This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING] [MIPS] Hookize REGISTER_MOVE_COST and MEMORY_MOVE_COST
- From: "Anatoly Sokolov" <aesok at post dot ru>
- To: "Anatoly Sokolov" <aesok at post dot ru>, <gcc-patches at gcc dot gnu dot org>
- Cc: <echristo at apple dot com>, <rdsandiford at googlemail dot com>
- Date: Tue, 10 Aug 2010 22:16:50 +0400
- Subject: [PING] [MIPS] Hookize REGISTER_MOVE_COST and MEMORY_MOVE_COST
- References: <868531388.20100807145612@post.ru>
Hi.
http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00544.html
The MIPS parts are approved.
Please, anyone can me approve the middle end part?
* reload.h (register_move_cost, memory_move_secondary_cost,
secondary_reload_class): Adjust prototype.
* rtl.h (reg_class_subset_p): Adjust prototype.
* reload.c (secondary_reload_class): Change arguments type from
enum reg_class to reg_class_t. Change result type to reg_class_t.
* reginfo.c (register_move_cost, reg_class_subset_p): Change
arguments type from enum reg_class to reg_class_t.
(memory_move_secondary_cost): Change arguments type from
enum reg_class to reg_class_t. Change type of saved_flags to
reg_class_t.
* config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
Remove macros.
(mips_cost): Remove.
(struct mips_rtx_cost_data): Moved to mips.c.
* config/mips/mips-protos.h (mips_register_move_cost): Remove.
* config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
(mips_cost): Make static.
(mips_canonicalize_move_class): Change argument type to reg_class_t.
Change result type to reg_class_t.
(mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
type from enum reg_class to reg_class_t.
(mips_register_move_cost): Make static. Change arguments
type from enum reg_class to reg_class_t.
(mips_memory_move_cost): New function.
(TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
Anatoly.