mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-01 07:44:05 +08:00
rs6000.c (rs6000_rtx_costs): Make adjustment for MULT inside MINUS as either argument.
* config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for MULT inside MINUS as either argument. Use rs6000_cost->dmul - rs6000_cost->fp not 0 as adjustment for outer NEG. From-SVN: r120442
This commit is contained in:
parent
705e2d28a1
commit
762c919f44
@ -1,3 +1,9 @@
|
||||
2007-01-04 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
|
||||
MULT inside MINUS as either argument. Use rs6000_cost->dmul -
|
||||
rs6000_cost->fp not 0 as adjustment for outer NEG.
|
||||
|
||||
2007-01-04 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* cgraph.c (cgraph_release_function_body): New function.
|
||||
|
@ -19738,11 +19738,12 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int *total)
|
||||
case MINUS:
|
||||
if (mode == DFmode)
|
||||
{
|
||||
if (GET_CODE (XEXP (x, 0)) == MULT)
|
||||
if (GET_CODE (XEXP (x, 0)) == MULT
|
||||
|| GET_CODE (XEXP (x, 1)) == MULT)
|
||||
{
|
||||
/* FNMA accounted in outer NEG. */
|
||||
if (outer_code == NEG)
|
||||
*total = 0;
|
||||
*total = rs6000_cost->dmul - rs6000_cost->fp;
|
||||
else
|
||||
*total = rs6000_cost->dmul;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user