ira-costs.c (find_costs_and_classes): Add missed ira_init_register_move_cost_if_necessary.

2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>

	* ira-costs.c (find_costs_and_classes): Add missed
	ira_init_register_move_cost_if_necessary.

From-SVN: r206606
This commit is contained in:
Vladimir Makarov 2014-01-14 19:08:32 +00:00 committed by Vladimir Makarov
parent e940b2ec99
commit dc6875820c
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
* ira-costs.c (find_costs_and_classes): Add missed
ira_init_register_move_cost_if_necessary.
2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
PR target/59787

View File

@ -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