aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-linear.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2005-04-22 14:17:07 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2005-04-22 14:17:07 +0000
commite6ef8d816eb03369d473bd2f482848e175999b49 (patch)
treea4ade7f681dcdb7f8021ebae6de9da8575b84070 /gcc/tree-loop-linear.c
parent8ca864d2a8cfd66dadfce83846651504c0975e3c (diff)
downloadgcc-e6ef8d816eb03369d473bd2f482848e175999b49.zip
gcc-e6ef8d816eb03369d473bd2f482848e175999b49.tar.gz
gcc-e6ef8d816eb03369d473bd2f482848e175999b49.tar.bz2
lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
* lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap). (gcc_tree_to_linear_expression): Convert to heap allocated vectors. (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest, lbv_to_gcc_expression, lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest, perfect_nestify): Likewise. lambda.h (gcc_loopnest_to_lambda_loopnest, lambda_loopnest_to_gcc_loopnest): Likewise. tree-loop-linear.c (linear_transform_loops): Likewise. From-SVN: r98561
Diffstat (limited to 'gcc/tree-loop-linear.c')
-rw-r--r--gcc/tree-loop-linear.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/tree-loop-linear.c b/gcc/tree-loop-linear.c
index b7e57a6..de75de4 100644
--- a/gcc/tree-loop-linear.c
+++ b/gcc/tree-loop-linear.c
@@ -243,9 +243,8 @@ void
linear_transform_loops (struct loops *loops)
{
unsigned int i;
- VEC(tree,gc) *oldivs = NULL; /* FIXME:These should really be on the
- heap. (nathan 2005/04/15)*/
- VEC(tree,gc) *invariants = NULL; /* FIXME:Likewise. */
+ VEC(tree,heap) *oldivs = NULL;
+ VEC(tree,heap) *invariants = NULL;
for (i = 1; i < loops->num; i++)
{
@@ -371,8 +370,8 @@ linear_transform_loops (struct loops *loops)
free_dependence_relations (dependence_relations);
free_data_refs (datarefs);
}
- VEC_free (tree, gc, oldivs);
- VEC_free (tree, gc, invariants);
+ VEC_free (tree, heap, oldivs);
+ VEC_free (tree, heap, invariants);
scev_reset ();
update_ssa (TODO_update_ssa);
rewrite_into_loop_closed_ssa (NULL);