[PATCH, rs6000] Make branch_cost changeable on rs6000
Andrew Pinski
pinskia@physics.uc.edu
Mon Feb 3 02:56:00 GMT 2003
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: branch_cost_switch.diff
Type: application/octet-stream
Size: 2587 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030203/03dfe33f/attachment.obj>
-------------- next part --------------
Thanks,
Andrew Pinski
apinski@apple.com
pinskia@physics.uc.edu
More information about the Gcc
mailing list