Commit b8faca75 by Vladimir Makarov Committed by Vladimir Makarov

re PR rtl-optimization/48381 (internal compiler error: in check_allocation, at ira.c:2094)

2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/48381
	* ira-color.c (assign_hard_reg): Use hard reg set intersection
	instead of ira_class_hard_reg_index for calculating conflicting
	hard registers.

From-SVN: r171795
parent 7d11cebe
2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/48381
* ira-color.c (assign_hard_reg): Use hard reg set intersection
instead of ira_class_hard_reg_index for calculating conflicting
hard registers.
2011-03-31 Steven Bosscher <steven@gcc.gnu.org> 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
* cprop.c: Clean up hash table building. * cprop.c: Clean up hash table building.
......
...@@ -1620,7 +1620,9 @@ assign_hard_reg (ira_allocno_t a, bool retry_p) ...@@ -1620,7 +1620,9 @@ assign_hard_reg (ira_allocno_t a, bool retry_p)
{ {
hard_regno = ALLOCNO_HARD_REGNO (conflict_a); hard_regno = ALLOCNO_HARD_REGNO (conflict_a);
if (hard_regno >= 0 if (hard_regno >= 0
&& ira_class_hard_reg_index[aclass][hard_regno] >= 0) && (ira_hard_reg_set_intersection_p
(hard_regno, ALLOCNO_MODE (conflict_a),
reg_class_contents[aclass])))
{ {
int n_objects = ALLOCNO_NUM_OBJECTS (conflict_a); int n_objects = ALLOCNO_NUM_OBJECTS (conflict_a);
int conflict_nregs; int conflict_nregs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment