This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]