diff mbox

one more patch for PR65710

Message ID 55282740.3040108@redhat.com
State New
Headers show

Commit Message

Vladimir Makarov April 10, 2015, 7:40 p.m. UTC
Yesterday I did a mistake in a preparation of the patch for PR65710.

Here is the patch correcting the mistake.

The patch was bootstrapped and tested on x86/x86-64, ppc64, and aarch64.

Committed as rev. 221983.

I am committing the patch also to gcc-4.9-branch a bit later.

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.
diff mbox

Patch

Index: lra-assigns.c
===================================================================
--- lra-assigns.c	(revision 221976)
+++ lra-assigns.c	(working copy)
@@ -1045,12 +1045,14 @@  spill_for (int regno, bitmap spilled_pse
 			  && 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++)