This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000] Make branch_cost changeable on rs6000
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 03 Feb 2003 10:31:46 -0500
- Subject: Re: [PATCH, rs6000] Make branch_cost changeable on rs6000
- References: <1A101834-3723-11D7-84EB-000393A6D2F2@physics.uc.edu>
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.
If you are going to change branch_cost, why don't you set the appropriate
value automatically instead of adding another mysterious parameter on the
command line?
This patch is not okay.
David