public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* one more patch for PR65710
@ 2015-04-10 19:40 Vladimir Makarov
  0 siblings, 0 replies; only message in thread
From: Vladimir Makarov @ 2015-04-10 19:40 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

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.



[-- Attachment #2: pr65710-2.patch --]
[-- Type: text/x-patch, Size: 834 bytes --]

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++)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-10 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 19:40 one more patch for PR65710 Vladimir Makarov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).