diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-18 14:56:36 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-18 14:56:36 +0000 |
commit | 4682ca167223685b40b5c5f7700f02b7d6597bea (patch) | |
tree | 7665fff80006b4ee0895413a6c4f561a0d006144 /gcc/ira-costs.c | |
parent | 72ec6882af0cdd2dbb64e0019806cabdd9302b58 (diff) | |
download | gcc-4682ca167223685b40b5c5f7700f02b7d6597bea.tar.gz |
2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/50107
* ira-int.h (ira_hard_reg_not_in_set_p): Remove.
(ira_hard_reg_in_set_p): New.
* ira-color.c (calculate_saved_nregs): New.
(assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
hard regs.
(allocno_reload_assign, fast_allocation): Use
ira_hard_reg_set_intersection_p instead of
ira_hard_reg_not_in_set_p.
* ira.c (setup_reg_renumber): Use
ira_hard_reg_set_intersection_p instead of
ira_hard_reg_not_in_set_p.
(setup_allocno_assignment_flags, calculate_allocation_cost): Use
ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
* ira-costs.c (ira_tune_allocno_costs): Use
ira_hard_reg_set_intersection_p instead of
ira_hard_reg_not_in_set_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177865 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira-costs.c')
-rw-r--r-- | gcc/ira-costs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index 39ef33a541c..12d3ed67fa7 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -2072,9 +2072,9 @@ ira_tune_allocno_costs (void) skip_p = false; FOR_EACH_ALLOCNO_OBJECT (a, obj, oi) { - if (! ira_hard_reg_not_in_set_p (regno, mode, - OBJECT_CONFLICT_HARD_REGS - (obj))) + if (ira_hard_reg_set_intersection_p (regno, mode, + OBJECT_CONFLICT_HARD_REGS + (obj))) { skip_p = true; break; @@ -2084,7 +2084,7 @@ ira_tune_allocno_costs (void) continue; rclass = REGNO_REG_CLASS (regno); cost = 0; - if (! ira_hard_reg_not_in_set_p (regno, mode, call_used_reg_set) + if (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] |