From 761a8eb70ae4108515bd7d756832744350b4ff7a Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Tue, 13 Aug 2013 17:10:07 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ira.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; } -- 2.7.4