* config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
From-SVN: r176554
This commit is contained in:
parent
0b47e34461
commit
21f3ae2f34
@ -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>
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user