ira.c (setup_class_translate_array): Use aclass instead of cl for classes not fully...
authorVladimir Makarov <vmakarov@redhat.com>
Tue, 13 Aug 2013 17:10:07 +0000 (17:10 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Tue, 13 Aug 2013 17:10:07 +0000 (17:10 +0000)
2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>

* ira.c (setup_class_translate_array): Use aclass instead of cl
for classes not fully covered by allocno classes.

From-SVN: r201699

gcc/ChangeLog
gcc/ira.c

index f22f848..f275f99 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * ira.c (setup_class_translate_array): Use aclass instead of cl
+       for classes not fully covered by allocno classes.
+
 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/57661
index 487746e..f829ebc 100644 (file)
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -1111,8 +1111,8 @@ setup_class_translate_array (enum reg_class *class_translate,
              min_cost = INT_MAX;
              for (mode = 0; mode < MAX_MACHINE_MODE; mode++)
                {
-                 cost = (ira_memory_move_cost[mode][cl][0]
-                         + ira_memory_move_cost[mode][cl][1]);
+                 cost = (ira_memory_move_cost[mode][aclass][0]
+                         + ira_memory_move_cost[mode][aclass][1]);
                  if (min_cost > cost)
                    min_cost = cost;
                }