summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-14 01:33:09 +0000
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-14 01:33:09 +0000
commitf5f4a56d6a767875d41cbba38ae97dc4e3e86c5b (patch)
treed04e1cc0bd584dae5bfd49cb3931634698d918b2
parent3d88d2d65fca93d50f63f713bede35e2dc28d334 (diff)
downloadgcc-f5f4a56d6a767875d41cbba38ae97dc4e3e86c5b.tar.gz
2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
* ira-color.c (coalesce_allocnos): Don't allocate and free sorted_copies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204771 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ira-color.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dad20a4bdb5..3345867289f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
+
+ * ira-color.c (coalesce_allocnos): Don't allocate and free
+ sorted_copies.
+
2013-11-14 Tom de Vries <tom@codesourcery.com>
* tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
diff --git a/gcc/ira-color.c b/gcc/ira-color.c
index 70cf5411842..6c52a2b7245 100644
--- a/gcc/ira-color.c
+++ b/gcc/ira-color.c
@@ -3725,8 +3725,6 @@ coalesce_allocnos (void)
int i, n, cp_num, regno;
bitmap_iterator bi;
- sorted_copies = (ira_copy_t *) ira_allocate (ira_copies_num
- * sizeof (ira_copy_t));
cp_num = 0;
/* Collect copies. */
EXECUTE_IF_SET_IN_BITMAP (coloring_allocno_bitmap, 0, j, bi)
@@ -3790,7 +3788,6 @@ coalesce_allocnos (void)
}
cp_num = n;
}
- ira_free (sorted_copies);
}
/* Usage cost and order number of coalesced allocno set to which