* config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.

From-SVN: r176554
This commit is contained in:
Georg-Johann Lay 2011-07-21 07:52:14 +00:00 committed by Georg-Johann Lay
parent 0b47e34461
commit 21f3ae2f34
2 changed files with 6 additions and 2 deletions

View File

@ -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>

View File

@ -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;