Commit a220ee34 by Richard Henderson Committed by Richard Henderson

alpha.c (alpha_rtx_costs): Cost 0 for a memory source.

        * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
        for a memory source.

From-SVN: r104425
parent d289e37a
......@@ -4,6 +4,9 @@
* real.c (exact_real_truncate): Return false if the format cannot
represent the number as a normal.
* config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
for a memory source.
2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
* tree-ssa-operands.c (swap_tree_operands): Export.
......
......@@ -1473,11 +1473,17 @@ alpha_rtx_costs (rtx x, int code, int outer_code, int *total)
case UNSIGNED_FLOAT:
case FIX:
case UNSIGNED_FIX:
case FLOAT_EXTEND:
case FLOAT_TRUNCATE:
*total = cost_data->fp_add;
return false;
case FLOAT_EXTEND:
if (GET_CODE (XEXP (x, 0)) == MEM)
*total = 0;
else
*total = cost_data->fp_add;
return false;
default:
return false;
}
......
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