From 73d7e2662e438cc5e49b65a3df31a83844906eab Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Wed, 20 Jul 2011 13:06:02 +0000 Subject: [PATCH] frv.c (frv_register_move_cost): Define explicitly costs for subclasses of GR_REGS. 2011-07-20 Vladimir Makarov * config/frv/frv.c (frv_register_move_cost): Define explicitly costs for subclasses of GR_REGS. From-SVN: r176507 --- gcc/ChangeLog | 5 +++++ gcc/config/frv/frv.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f8934a0e30..de9172ad039 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-20 Vladimir Makarov + + * config/frv/frv.c (frv_register_move_cost): Define explicitly + costs for subclasses of GR_REGS. + 2011-07-20 Uros Bizjak PR target/49780 diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index cbd04f1c6ff..01ed8e769e7 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -6818,6 +6818,13 @@ frv_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, case QUAD_REGS: case GPR_REGS: + case GR8_REGS: + case GR9_REGS: + case GR89_REGS: + case FDPIC_REGS: + case FDPIC_FPTR_REGS: + case FDPIC_CALL_REGS: + switch (to) { default: @@ -6825,6 +6832,13 @@ frv_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, case QUAD_REGS: case GPR_REGS: + case GR8_REGS: + case GR9_REGS: + case GR89_REGS: + case FDPIC_REGS: + case FDPIC_FPTR_REGS: + case FDPIC_CALL_REGS: + return LOW_COST; case FPR_REGS: @@ -6844,6 +6858,13 @@ frv_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, case QUAD_REGS: case GPR_REGS: + case GR8_REGS: + case GR9_REGS: + case GR89_REGS: + case FDPIC_REGS: + case FDPIC_FPTR_REGS: + case FDPIC_CALL_REGS: + case QUAD_ACC_REGS: case ACCG_REGS: return MEDIUM_COST; @@ -6862,6 +6883,13 @@ frv_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, case QUAD_REGS: case GPR_REGS: + case GR8_REGS: + case GR9_REGS: + case GR89_REGS: + case FDPIC_REGS: + case FDPIC_FPTR_REGS: + case FDPIC_CALL_REGS: + return MEDIUM_COST; } -- 2.30.2