summaryrefslogtreecommitdiff
path: root/gcc/lra-assigns.c
diff options
context:
space:
mode:
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-10 19:38:55 +0000
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-10 19:38:55 +0000
commitb439aebd47d6a128079886586c664371e14e363c (patch)
treed23d6fa72aed08db8791f5239afe151bd07ab6a3 /gcc/lra-assigns.c
parenta067725a200c622f1570ffe63a56eb8c802ca109 (diff)
downloadgcc-b439aebd47d6a128079886586c664371e14e363c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221983 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra-assigns.c')
-rw-r--r--gcc/lra-assigns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/lra-assigns.c b/gcc/lra-assigns.c
index a74d8abc3ab..994b04fc643 100644
--- a/gcc/lra-assigns.c
+++ b/gcc/lra-assigns.c
@@ -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++)