aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2011-07-21 07:52:14 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2011-07-21 07:52:14 +0000
commit21f3ae2f34dcf2e344c3cbbacb9f0103629ce214 (patch)
treea67305e7df42fb4c1ca4fd9eb3d3ccb391a8e306 /gcc
parent0b47e344616c42629624838e40cf6a371c55c195 (diff)
downloadgcc-21f3ae2f34dcf2e344c3cbbacb9f0103629ce214.zip
gcc-21f3ae2f34dcf2e344c3cbbacb9f0103629ce214.tar.gz
gcc-21f3ae2f34dcf2e344c3cbbacb9f0103629ce214.tar.bz2
* config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
From-SVN: r176554
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/avr/avr.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6d2b417..fa19176 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-21 Georg-Johann Lay <avr@gjlay.de>
+
+ * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
+
2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
Uros Bizjak <ubizjak@gmail.com>
Richard Henderson <rth@redhat.com>
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 15ad9a1..a1d0c88 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;