From dc6875820cfc14f916bdfbe53aaf31f845dedfb5 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Tue, 14 Jan 2014 19:08:32 +0000 Subject: [PATCH] ira-costs.c (find_costs_and_classes): Add missed ira_init_register_move_cost_if_necessary. 2014-01-14 Vladimir Makarov * ira-costs.c (find_costs_and_classes): Add missed ira_init_register_move_cost_if_necessary. From-SVN: r206606 --- gcc/ChangeLog | 5 +++++ gcc/ira-costs.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00461779282..1c15aca4b50 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-01-14 Vladimir Makarov + + * ira-costs.c (find_costs_and_classes): Add missed + ira_init_register_move_cost_if_necessary. + 2014-01-14 Vladimir Makarov PR target/59787 diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index b348bbe46fd..648806bc182 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -1827,6 +1827,7 @@ find_costs_and_classes (FILE *dump_file) int ind = cost_classes_ptr->index[aclass]; ira_assert (ind >= 0); + ira_init_register_move_cost_if_necessary (ALLOCNO_MODE (a)); ira_add_allocno_pref (a, ira_class_hard_regs[best][0], (a_costs[ind] - ALLOCNO_CLASS_COST (a)) / (ira_register_move_cost