This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, rs6000] Make branch_cost changeable on rs6000
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, apinski at apple dot com
- Date: Sun, 2 Feb 2003 18:56:33 -0800
- Subject: [PATCH, rs6000] Make branch_cost changeable on rs6000
This is because on the 74xx, it is faster for branches than to use
subfe/adde and subfc/addc
pairs because subfe/adde are serializing instructions on those
processors.
ChangeLog:
2003-02-02 Andrew Pinski <pinskia@physics.uc.edu>
* config/rs6000/rs6000.c: (rs6000_branch_cost_string): New Var.
(rs6000_branch_cost): New Var. (rs6000_override_options): Set
rs6000_branch_cost.
* config/rs6000/rs6000.h: (TARGET_OPTIONS): Add `branch-cost='.
(rs6000_branch_cost_string): Declare. (rs6000_branch_cost): Declare.
(BRANCH_COST): Use rs6000_branch_cost.
Attachment:
branch_cost_switch.diff
Description: Binary data
Thanks,
Andrew Pinski
apinski@apple.com
pinskia@physics.uc.edu