Commit 8a82b045 by Joseph Myers Committed by Joseph Myers

rs6000.c (rs6000_rtx_costs): Do not add extra costs for MULT inside PLUS or MINUS.

	* config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
	costs for MULT inside PLUS or MINUS.

From-SVN: r106345
parent 2e71c2a0
2005-11-01 Joseph S. Myers <joseph@codesourcery.com>
* config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
costs for MULT inside PLUS or MINUS.
2005-11-01 Bob Wilson <bob.wilson@acm.org> 2005-11-01 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding. * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
......
...@@ -18304,12 +18304,6 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int *total) ...@@ -18304,12 +18304,6 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int *total)
else else
*total = rs6000_cost->fp; *total = rs6000_cost->fp;
} }
else if (GET_CODE (XEXP (x, 0)) == MULT)
{
/* The rs6000 doesn't have shift-and-add instructions. */
rs6000_rtx_costs (XEXP (x, 0), MULT, PLUS, total);
*total += COSTS_N_INSNS (1);
}
else else
*total = COSTS_N_INSNS (1); *total = COSTS_N_INSNS (1);
return false; return false;
...@@ -18336,12 +18330,6 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int *total) ...@@ -18336,12 +18330,6 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int *total)
else else
*total = rs6000_cost->fp; *total = rs6000_cost->fp;
} }
else if (GET_CODE (XEXP (x, 0)) == MULT)
{
/* The rs6000 doesn't have shift-and-sub instructions. */
rs6000_rtx_costs (XEXP (x, 0), MULT, MINUS, total);
*total += COSTS_N_INSNS (1);
}
else else
*total = COSTS_N_INSNS (1); *total = COSTS_N_INSNS (1);
return false; 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