Commit 73451ae7 by Georg-Johann Lay

* config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.

From-SVN: r176516
parent c2919dc8
2011-07-20 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_class_max_nregs): Fix return type.
......@@ -907,7 +911,7 @@
* doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
* doc/tm.texi: Regenerate.
* target.def (mergeable_rodata_prefix: New defhookpod.
* target.def (mergeable_rodata_prefix): New defhookpod.
* varasm.c (mergeable_string_section, mergeable_constant_section):
Use it. Allocate name with alloca.
......
......@@ -5332,6 +5332,7 @@ avr_rtx_costs (rtx x, int codearg, int outer_code ATTRIBUTE_UNUSED, int *total,
{
case CONST_INT:
case CONST_DOUBLE:
case SYMBOL_REF:
/* Immediate constants are as cheap as registers. */
*total = 0;
return true;
......@@ -5339,7 +5340,6 @@ avr_rtx_costs (rtx x, int codearg, int outer_code ATTRIBUTE_UNUSED, int *total,
case MEM:
case CONST:
case LABEL_REF:
case SYMBOL_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