diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-11-01 19:57:29 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-11-01 19:57:29 +0000 |
commit | 8a82b045bf5891778ca81e9e9536932ae55e2c2a (patch) | |
tree | d5f800d5bb56a27a10f4164847383b633f2e43ba /gcc | |
parent | 2e71c2a06ecc468470bbeace128a838dd5bd07fa (diff) | |
download | gcc-8a82b045bf5891778ca81e9e9536932ae55e2c2a.zip gcc-8a82b045bf5891778ca81e9e9536932ae55e2c2a.tar.gz gcc-8a82b045bf5891778ca81e9e9536932ae55e2c2a.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 12 |
2 files changed, 5 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8096236..b119e0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 3c33a81..4ebeac5 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -18304,12 +18304,6 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int *total) else *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 *total = COSTS_N_INSNS (1); return false; @@ -18336,12 +18330,6 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int *total) else *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 *total = COSTS_N_INSNS (1); return false; |