From: Vladimir Makarov Date: Tue, 13 Aug 2013 17:10:07 +0000 (+0000) Subject: ira.c (setup_class_translate_array): Use aclass instead of cl for classes not fully... X-Git-Tag: upstream/12.2.0~68413 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=761a8eb70ae4108515bd7d756832744350b4ff7a;p=platform%2Fupstream%2Fgcc.git ira.c (setup_class_translate_array): Use aclass instead of cl for classes not fully covered by allocno classes. 2013-08-13 Vladimir Makarov * ira.c (setup_class_translate_array): Use aclass instead of cl for classes not fully covered by allocno classes. From-SVN: r201699 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f22f848..f275f99 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-08-13 Vladimir Makarov + + * ira.c (setup_class_translate_array): Use aclass instead of cl + for classes not fully covered by allocno classes. + 2013-08-13 Jakub Jelinek PR tree-optimization/57661 diff --git a/gcc/ira.c b/gcc/ira.c index 487746e..f829ebc 100644 --- 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; }