Commit 21f3ae2f by Georg-Johann Lay Committed by Georg-Johann Lay

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

From-SVN: r176554
parent 0b47e344
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment