2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Mar 2011 20:51:14 +0000 (20:51 +0000)
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Mar 2011 20:51:14 +0000 (20:51 +0000)
PR rtl-optimization/48331
PR rtl-optimization/48334
* ira-color.c (color_allocnos): Call setup_profitable_hard_regs
for any used algorithm.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171699 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ira-color.c

index d43f586..ad483d3 100644 (file)
@@ -1,5 +1,12 @@
 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
 
+       PR rtl-optimization/48331
+       PR rtl-optimization/48334
+       * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
+       for any used algorithm.
+
+2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
+
        * ira-conflicts.c (build_object_conflicts): Add unused attribute
        to parent_max.
 
index f7ac594..4e2dd2c 100644 (file)
@@ -2590,6 +2590,7 @@ color_allocnos (void)
   bitmap_iterator bi;
   ira_allocno_t a;
 
+  setup_profitable_hard_regs ();
   if (flag_ira_algorithm == IRA_ALGORITHM_PRIORITY)
     {
       n = 0;
@@ -2642,7 +2643,6 @@ color_allocnos (void)
     }
   else
     {
-      setup_profitable_hard_regs ();
       form_object_hard_regs_nodes_forest ();
       if (internal_flag_ira_verbose > 2 && ira_dump_file != NULL)
        print_hard_regs_forest (ira_dump_file);