re PR rtl-optimization/46002 (ICE: in update_copy_costs, at ira-color.c:319 with...
authorChung-Lin Tang <cltang@codesourcery.com>
Tue, 22 Feb 2011 03:23:21 +0000 (03:23 +0000)
committerChung-Lin Tang <cltang@gcc.gnu.org>
Tue, 22 Feb 2011 03:23:21 +0000 (03:23 +0000)
2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>

PR rtl-optimization/46002
* ira-color.c (update_copy_costs): Change class intersection
test to reg_class_contents[] test of 'hard_regno'.

From-SVN: r170388

gcc/ChangeLog
gcc/ira-color.c

index 4ce11387b461a0836f8b8a52d5b79660ea501736..a78deb0c25145c15801750cda52cc6a81acfe462 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
+
+       PR rtl-optimization/46002
+       * ira-color.c (update_copy_costs): Change class intersection
+       test to reg_class_contents[] test of 'hard_regno'.
+
 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
 
        * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
index 9c5f4b722972f2967a2b4e6db0cf740873093971..5c98ef91c2c99c475f621c436c64c7dbb01f2995 100644 (file)
@@ -292,7 +292,8 @@ update_copy_costs (ira_allocno_t allocno, bool decr_p)
            gcc_unreachable ();
 
          cover_class = ALLOCNO_COVER_CLASS (another_allocno);
-         if (! ira_reg_classes_intersect_p[rclass][cover_class]
+         if (! TEST_HARD_REG_BIT (reg_class_contents[cover_class],
+                                  hard_regno)
              || ALLOCNO_ASSIGNED_P (another_allocno))
            continue;