re PR target/65710 (Thumb1 ICE caused by no register to spill)

2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/65710
	* lra-assigns.c (spill_for): Update smallest_bad_spills_num.
	Print bad_spills_num and insn_pseudos_num.

From-SVN: r221983
This commit is contained in:
Vladimir Makarov 2015-04-10 19:38:55 +00:00 committed by Vladimir Makarov
parent 77f0d88d1f
commit 54e915b362
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
PR target/65710
* lra-assigns.c (spill_for): Update smallest_bad_spills_num.
Print bad_spills_num and insn_pseudos_num.
2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65694

View File

@ -1045,12 +1045,14 @@ spill_for (int regno, bitmap spilled_pseudo_bitmap, bool first_p)
&& best_cost > cost))))
{
best_insn_pseudos_num = insn_pseudos_num;
smallest_bad_spills_num = bad_spills_num;
best_cost = cost;
best_hard_regno = hard_regno;
bitmap_copy (&best_spill_pseudos_bitmap, &spill_pseudos_bitmap);
if (lra_dump_file != NULL)
fprintf (lra_dump_file, " Now best %d(cost=%d)\n",
hard_regno, cost);
fprintf (lra_dump_file,
" Now best %d(cost=%d, bad_spills=%d, insn_pseudos=%d)\n",
hard_regno, cost, bad_spills_num, insn_pseudos_num);
}
assign_temporarily (regno, -1);
for (j = 0; j < n; j++)