From 21f3ae2f34dcf2e344c3cbbacb9f0103629ce214 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Thu, 21 Jul 2011 07:52:14 +0000 Subject: [PATCH] * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0. From-SVN: r176554 --- gcc/ChangeLog | 4 ++++ gcc/config/avr/avr.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d2b4176240..fa19176659c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-07-21 Georg-Johann Lay + + * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0. + 2011-07-20 H.J. Lu Uros Bizjak Richard Henderson diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 15ad9a164fd..a1d0c885bd8 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -5333,13 +5333,13 @@ avr_rtx_costs (rtx x, int codearg, int outer_code ATTRIBUTE_UNUSED, int *total, case CONST_INT: case CONST_DOUBLE: case SYMBOL_REF: + case CONST: + case LABEL_REF: /* Immediate constants are as cheap as registers. */ *total = 0; return true; case MEM: - case CONST: - case LABEL_REF: *total = COSTS_N_INSNS (GET_MODE_SIZE (mode)); return true; -- 2.30.2