re PR middle-end/56461 (GCC is leaking lots of memory)

PR middle-end/56461
	* tree-loop-distribution.c (ldist_gen): Call partition_free after each
	partitions.ordered_remove.

From-SVN: r196427
This commit is contained in:
Jakub Jelinek 2013-03-04 11:08:57 +01:00 committed by Jakub Jelinek
parent 30862efc6b
commit 5eb010bcfc
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2013-03-04 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56461
* tree-loop-distribution.c (ldist_gen): Call partition_free after each
partitions.ordered_remove.
PR middle-end/56461
* tree-vect-stmts.c (vectorizable_conversion): Don't call
vec_oprnds0.create (1) for modifier == NONE.

View File

@ -1306,6 +1306,7 @@ ldist_gen (struct loop *loop, struct graph *rdg,
if (partition->kind == PKIND_REDUCTION)
into->kind = PKIND_REDUCTION;
partitions.ordered_remove (i);
partition_free (partition);
i--;
}
else
@ -1342,6 +1343,7 @@ ldist_gen (struct loop *loop, struct graph *rdg,
if (partition->kind == PKIND_REDUCTION)
into->kind = PKIND_REDUCTION;
partitions.ordered_remove (j);
partition_free (partition);
j--;
}
}
@ -1367,6 +1369,7 @@ ldist_gen (struct loop *loop, struct graph *rdg,
bitmap_ior_into (into->stmts, what->stmts);
into->kind = PKIND_REDUCTION;
partitions.ordered_remove (i);
partition_free (what);
}
}
}