Fix IRA_HARD_REGNO_ADD_COST_MULTIPLIER in ira_tune_allocno_costs
2014-09-06 Tom de Vries <tom@codesourcery.com> * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS. From-SVN: r214988
This commit is contained in:
parent
da27f5567c
commit
811e4f15d6
2 changed files with 16 additions and 12 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-09-06 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
* ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
|
||||
IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
|
||||
ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
|
||||
|
||||
2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
|
||||
|
||||
PR target/63188
|
||||
|
|
|
@ -2217,21 +2217,19 @@ ira_tune_allocno_costs (void)
|
|||
crossed_calls_clobber_regs
|
||||
= &(ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS (a));
|
||||
if (ira_hard_reg_set_intersection_p (regno, mode,
|
||||
*crossed_calls_clobber_regs))
|
||||
{
|
||||
if (ira_hard_reg_set_intersection_p (regno, mode,
|
||||
*crossed_calls_clobber_regs)
|
||||
&& (ira_hard_reg_set_intersection_p (regno, mode,
|
||||
call_used_reg_set)
|
||||
|| HARD_REGNO_CALL_PART_CLOBBERED (regno, mode))
|
||||
cost += (ALLOCNO_CALL_FREQ (a)
|
||||
* (ira_memory_move_cost[mode][rclass][0]
|
||||
+ ira_memory_move_cost[mode][rclass][1]));
|
||||
|| HARD_REGNO_CALL_PART_CLOBBERED (regno, mode)))
|
||||
cost += (ALLOCNO_CALL_FREQ (a)
|
||||
* (ira_memory_move_cost[mode][rclass][0]
|
||||
+ ira_memory_move_cost[mode][rclass][1]));
|
||||
#ifdef IRA_HARD_REGNO_ADD_COST_MULTIPLIER
|
||||
cost += ((ira_memory_move_cost[mode][rclass][0]
|
||||
+ ira_memory_move_cost[mode][rclass][1])
|
||||
* ALLOCNO_FREQ (a)
|
||||
* IRA_HARD_REGNO_ADD_COST_MULTIPLIER (regno) / 2);
|
||||
cost += ((ira_memory_move_cost[mode][rclass][0]
|
||||
+ ira_memory_move_cost[mode][rclass][1])
|
||||
* ALLOCNO_FREQ (a)
|
||||
* IRA_HARD_REGNO_ADD_COST_MULTIPLIER (regno) / 2);
|
||||
#endif
|
||||
}
|
||||
if (INT_MAX - cost < reg_costs[j])
|
||||
reg_costs[j] = INT_MAX;
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue