]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/65710 (Thumb1 ICE caused by no register to spill)
authorVladimir Makarov <vmakarov@redhat.com>
Fri, 10 Apr 2015 19:43:28 +0000 (19:43 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Fri, 10 Apr 2015 19:43:28 +0000 (19:43 +0000)
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: r221984

gcc/ChangeLog
gcc/lra-assigns.c

index 6ab927769cd55c204ec7841b0fdfee9bc74cc2e5..e0c65b6c91f67918304e8a6b46689848690ca9db 100644 (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-09  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR target/65710
index fdba267770d8ba778112a763abdf0418200aff3e..2ec160ba7f6463da6b0fe210dcadb9553dfac625 100644 (file)
@@ -982,12 +982,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++)