Commit e6ef8d81 by Nathan Sidwell Committed by Nathan Sidwell

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
parent 8ca864d2
2005-04-22 Nathan Sidwell <nathan@codesourcery.com>
* 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.
2005-04-22 Eric Botcazou <ebotcazou@libertysurf.fr> 2005-04-22 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/predicates.md (arith_double_operand): Use * config/sparc/predicates.md (arith_double_operand): Use
......
...@@ -115,16 +115,13 @@ ...@@ -115,16 +115,13 @@
Fourier-Motzkin elimination is used to compute the bounds of the base space Fourier-Motzkin elimination is used to compute the bounds of the base space
of the lattice. */ of the lattice. */
/* FIXME: I'm sure the vectors used here could be heap allocated.
There certainly should be explicit VEC_frees, either way. (nathan
2005/04/14) */
DEF_VEC_P(int); DEF_VEC_P(int);
DEF_VEC_ALLOC_P(int,gc); DEF_VEC_ALLOC_P(int,heap);
static bool perfect_nestify (struct loops *, static bool perfect_nestify (struct loops *,
struct loop *, VEC(tree,gc) *, struct loop *, VEC(tree,heap) *,
VEC(tree,gc) *, VEC(int,gc) *, VEC(tree,gc) *); VEC(tree,heap) *, VEC(int,heap) *,
VEC(tree,heap) *);
/* Lattice stuff that is internal to the code generation algorithm. */ /* Lattice stuff that is internal to the code generation algorithm. */
typedef struct typedef struct
...@@ -1156,8 +1153,8 @@ lambda_loopnest_transform (lambda_loopnest nest, lambda_trans_matrix trans) ...@@ -1156,8 +1153,8 @@ lambda_loopnest_transform (lambda_loopnest nest, lambda_trans_matrix trans)
static lambda_linear_expression static lambda_linear_expression
gcc_tree_to_linear_expression (int depth, tree expr, gcc_tree_to_linear_expression (int depth, tree expr,
VEC(tree,gc) *outerinductionvars, VEC(tree,heap) *outerinductionvars,
VEC(tree,gc) *invariants, int extra) VEC(tree,heap) *invariants, int extra)
{ {
lambda_linear_expression lle = NULL; lambda_linear_expression lle = NULL;
switch (TREE_CODE (expr)) switch (TREE_CODE (expr))
...@@ -1252,12 +1249,12 @@ invariant_in_loop_and_outer_loops (struct loop *loop, tree op) ...@@ -1252,12 +1249,12 @@ invariant_in_loop_and_outer_loops (struct loop *loop, tree op)
static lambda_loop static lambda_loop
gcc_loop_to_lambda_loop (struct loop *loop, int depth, gcc_loop_to_lambda_loop (struct loop *loop, int depth,
VEC(tree,gc) ** invariants, VEC(tree,heap) ** invariants,
tree * ourinductionvar, tree * ourinductionvar,
VEC(tree,gc) * outerinductionvars, VEC(tree,heap) * outerinductionvars,
VEC(tree,gc) ** lboundvars, VEC(tree,heap) ** lboundvars,
VEC(tree,gc) ** uboundvars, VEC(tree,heap) ** uboundvars,
VEC(int,gc) ** steps) VEC(int,heap) ** steps)
{ {
tree phi; tree phi;
tree exit_cond; tree exit_cond;
...@@ -1405,12 +1402,13 @@ gcc_loop_to_lambda_loop (struct loop *loop, int depth, ...@@ -1405,12 +1402,13 @@ gcc_loop_to_lambda_loop (struct loop *loop, int depth,
return NULL; return NULL;
} }
/* One part of the test may be a loop invariant tree. */ /* One part of the test may be a loop invariant tree. */
VEC_reserve (tree, heap, *invariants, 1);
if (TREE_CODE (TREE_OPERAND (test, 1)) == SSA_NAME if (TREE_CODE (TREE_OPERAND (test, 1)) == SSA_NAME
&& invariant_in_loop_and_outer_loops (loop, TREE_OPERAND (test, 1))) && invariant_in_loop_and_outer_loops (loop, TREE_OPERAND (test, 1)))
VEC_safe_push (tree, gc, *invariants, TREE_OPERAND (test, 1)); VEC_quick_push (tree, *invariants, TREE_OPERAND (test, 1));
else if (TREE_CODE (TREE_OPERAND (test, 0)) == SSA_NAME else if (TREE_CODE (TREE_OPERAND (test, 0)) == SSA_NAME
&& invariant_in_loop_and_outer_loops (loop, TREE_OPERAND (test, 0))) && invariant_in_loop_and_outer_loops (loop, TREE_OPERAND (test, 0)))
VEC_safe_push (tree, gc, *invariants, TREE_OPERAND (test, 0)); VEC_quick_push (tree, *invariants, TREE_OPERAND (test, 0));
/* The non-induction variable part of the test is the upper bound variable. /* The non-induction variable part of the test is the upper bound variable.
*/ */
...@@ -1442,9 +1440,9 @@ gcc_loop_to_lambda_loop (struct loop *loop, int depth, ...@@ -1442,9 +1440,9 @@ gcc_loop_to_lambda_loop (struct loop *loop, int depth,
*invariants, extra); *invariants, extra);
uboundresult = build (PLUS_EXPR, TREE_TYPE (uboundvar), uboundvar, uboundresult = build (PLUS_EXPR, TREE_TYPE (uboundvar), uboundvar,
build_int_cst (TREE_TYPE (uboundvar), extra)); build_int_cst (TREE_TYPE (uboundvar), extra));
VEC_safe_push (tree, gc, *uboundvars, uboundresult); VEC_safe_push (tree, heap, *uboundvars, uboundresult);
VEC_safe_push (tree, gc, *lboundvars, lboundvar); VEC_safe_push (tree, heap, *lboundvars, lboundvar);
VEC_safe_push (int, gc, *steps, stepint); VEC_safe_push (int, heap, *steps, stepint);
if (!ubound) if (!ubound)
{ {
if (dump_file && (dump_flags & TDF_DETAILS)) if (dump_file && (dump_flags & TDF_DETAILS))
...@@ -1493,7 +1491,7 @@ find_induction_var_from_exit_cond (struct loop *loop) ...@@ -1493,7 +1491,7 @@ find_induction_var_from_exit_cond (struct loop *loop)
} }
DEF_VEC_P(lambda_loop); DEF_VEC_P(lambda_loop);
DEF_VEC_ALLOC_P(lambda_loop,gc); DEF_VEC_ALLOC_P(lambda_loop,heap);
/* Generate a lambda loopnest from a gcc loopnest LOOP_NEST. /* Generate a lambda loopnest from a gcc loopnest LOOP_NEST.
Return the new loop nest. Return the new loop nest.
...@@ -1505,18 +1503,18 @@ DEF_VEC_ALLOC_P(lambda_loop,gc); ...@@ -1505,18 +1503,18 @@ DEF_VEC_ALLOC_P(lambda_loop,gc);
lambda_loopnest lambda_loopnest
gcc_loopnest_to_lambda_loopnest (struct loops *currloops, gcc_loopnest_to_lambda_loopnest (struct loops *currloops,
struct loop * loop_nest, struct loop * loop_nest,
VEC(tree,gc) **inductionvars, VEC(tree,heap) **inductionvars,
VEC(tree,gc) **invariants, VEC(tree,heap) **invariants,
bool need_perfect_nest) bool need_perfect_nest)
{ {
lambda_loopnest ret; lambda_loopnest ret = NULL;
struct loop *temp; struct loop *temp;
int depth = 0; int depth = 0;
size_t i; size_t i;
VEC(lambda_loop,gc) *loops = NULL; VEC(lambda_loop,heap) *loops = NULL;
VEC(tree,gc) *uboundvars = NULL; VEC(tree,heap) *uboundvars = NULL;
VEC(tree,gc) *lboundvars = NULL; VEC(tree,heap) *lboundvars = NULL;
VEC(int,gc) *steps = NULL; VEC(int,heap) *steps = NULL;
lambda_loop newloop; lambda_loop newloop;
tree inductionvar = NULL; tree inductionvar = NULL;
...@@ -1530,8 +1528,8 @@ gcc_loopnest_to_lambda_loopnest (struct loops *currloops, ...@@ -1530,8 +1528,8 @@ gcc_loopnest_to_lambda_loopnest (struct loops *currloops,
&steps); &steps);
if (!newloop) if (!newloop)
return NULL; return NULL;
VEC_safe_push (tree, gc, *inductionvars, inductionvar); VEC_safe_push (tree, heap, *inductionvars, inductionvar);
VEC_safe_push (lambda_loop, gc, loops, newloop); VEC_safe_push (lambda_loop, heap, loops, newloop);
temp = temp->inner; temp = temp->inner;
} }
if (need_perfect_nest) if (need_perfect_nest)
...@@ -1540,23 +1538,26 @@ gcc_loopnest_to_lambda_loopnest (struct loops *currloops, ...@@ -1540,23 +1538,26 @@ gcc_loopnest_to_lambda_loopnest (struct loops *currloops,
lboundvars, uboundvars, steps, *inductionvars)) lboundvars, uboundvars, steps, *inductionvars))
{ {
if (dump_file) if (dump_file)
fprintf (dump_file, "Not a perfect loop nest and couldn't convert to one.\n"); fprintf (dump_file,
return NULL; "Not a perfect loop nest and couldn't convert to one.\n");
goto fail;
} }
else if (dump_file) else if (dump_file)
fprintf (dump_file, "Successfully converted loop nest to perfect loop nest.\n"); fprintf (dump_file,
"Successfully converted loop nest to perfect loop nest.\n");
} }
ret = lambda_loopnest_new (depth, 2 * depth); ret = lambda_loopnest_new (depth, 2 * depth);
for (i = 0; VEC_iterate (lambda_loop, loops, i, newloop); i++) for (i = 0; VEC_iterate (lambda_loop, loops, i, newloop); i++)
LN_LOOPS (ret)[i] = newloop; LN_LOOPS (ret)[i] = newloop;
fail:
VEC_free (lambda_loop, heap, loops);
VEC_free (tree, heap, uboundvars);
VEC_free (tree, heap, lboundvars);
VEC_free (int, heap, steps);
return ret; return ret;
} }
/* Convert a lambda body vector LBV to a gcc tree, and return the new tree. /* Convert a lambda body vector LBV to a gcc tree, and return the new tree.
STMTS_TO_INSERT is a pointer to a tree where the statements we need to be STMTS_TO_INSERT is a pointer to a tree where the statements we need to be
inserted for us are stored. INDUCTION_VARS is the array of induction inserted for us are stored. INDUCTION_VARS is the array of induction
...@@ -1565,8 +1566,8 @@ gcc_loopnest_to_lambda_loopnest (struct loops *currloops, ...@@ -1565,8 +1566,8 @@ gcc_loopnest_to_lambda_loopnest (struct loops *currloops,
static tree static tree
lbv_to_gcc_expression (lambda_body_vector lbv, lbv_to_gcc_expression (lambda_body_vector lbv,
tree type, VEC(tree,gc) *induction_vars, tree type, VEC(tree,heap) *induction_vars,
tree * stmts_to_insert) tree *stmts_to_insert)
{ {
tree stmts, stmt, resvar, name; tree stmts, stmt, resvar, name;
tree iv; tree iv;
...@@ -1648,16 +1649,17 @@ static tree ...@@ -1648,16 +1649,17 @@ static tree
lle_to_gcc_expression (lambda_linear_expression lle, lle_to_gcc_expression (lambda_linear_expression lle,
lambda_linear_expression offset, lambda_linear_expression offset,
tree type, tree type,
VEC(tree,gc) *induction_vars, VEC(tree,heap) *induction_vars,
VEC(tree,gc) *invariants, VEC(tree,heap) *invariants,
enum tree_code wrap, tree * stmts_to_insert) enum tree_code wrap, tree *stmts_to_insert)
{ {
tree stmts, stmt, resvar, name; tree stmts, stmt, resvar, name;
size_t i; size_t i;
tree_stmt_iterator tsi; tree_stmt_iterator tsi;
tree iv, invar; tree iv, invar;
VEC(tree,gc) *results = NULL; VEC(tree,heap) *results = NULL;
gcc_assert (wrap == MAX_EXPR || wrap == MIN_EXPR);
name = NULL_TREE; name = NULL_TREE;
/* Create a statement list and a linear expression temporary. */ /* Create a statement list and a linear expression temporary. */
stmts = alloc_stmt_list (); stmts = alloc_stmt_list ();
...@@ -1790,16 +1792,10 @@ lle_to_gcc_expression (lambda_linear_expression lle, ...@@ -1790,16 +1792,10 @@ lle_to_gcc_expression (lambda_linear_expression lle,
/* Handle any denominator that occurs. */ /* Handle any denominator that occurs. */
if (LLE_DENOMINATOR (lle) != 1) if (LLE_DENOMINATOR (lle) != 1)
{ {
if (wrap == MAX_EXPR) stmt = build_int_cst (type, LLE_DENOMINATOR (lle));
stmt = build (MODIFY_EXPR, void_type_node, resvar, stmt = build (wrap == MAX_EXPR ? CEIL_DIV_EXPR : FLOOR_DIV_EXPR,
build (CEIL_DIV_EXPR, type, name, type, name, stmt);
build_int_cst (type, LLE_DENOMINATOR (lle)))); stmt = build (MODIFY_EXPR, void_type_node, resvar, stmt);
else if (wrap == MIN_EXPR)
stmt = build (MODIFY_EXPR, void_type_node, resvar,
build (FLOOR_DIV_EXPR, type, name,
build_int_cst (type, LLE_DENOMINATOR (lle))));
else
gcc_unreachable();
/* name = {ceil, floor}(name/denominator) */ /* name = {ceil, floor}(name/denominator) */
name = make_ssa_name (resvar, stmt); name = make_ssa_name (resvar, stmt);
...@@ -1807,7 +1803,7 @@ lle_to_gcc_expression (lambda_linear_expression lle, ...@@ -1807,7 +1803,7 @@ lle_to_gcc_expression (lambda_linear_expression lle,
tsi = tsi_last (stmts); tsi = tsi_last (stmts);
tsi_link_after (&tsi, stmt, TSI_CONTINUE_LINKING); tsi_link_after (&tsi, stmt, TSI_CONTINUE_LINKING);
} }
VEC_safe_push (tree, gc, results, name); VEC_safe_push (tree, heap, results, name);
} }
/* Again, out of laziness, we don't handle this case yet. It's not /* Again, out of laziness, we don't handle this case yet. It's not
...@@ -1827,6 +1823,8 @@ lle_to_gcc_expression (lambda_linear_expression lle, ...@@ -1827,6 +1823,8 @@ lle_to_gcc_expression (lambda_linear_expression lle,
tsi_link_after (&tsi, stmt, TSI_CONTINUE_LINKING); tsi_link_after (&tsi, stmt, TSI_CONTINUE_LINKING);
} }
VEC_free (tree, heap, results);
*stmts_to_insert = stmts; *stmts_to_insert = stmts;
return name; return name;
} }
...@@ -1845,16 +1843,15 @@ lle_to_gcc_expression (lambda_linear_expression lle, ...@@ -1845,16 +1843,15 @@ lle_to_gcc_expression (lambda_linear_expression lle,
void void
lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest, lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest,
VEC(tree,gc) *old_ivs, VEC(tree,heap) *old_ivs,
VEC(tree,gc) *invariants, VEC(tree,heap) *invariants,
lambda_loopnest new_loopnest, lambda_loopnest new_loopnest,
lambda_trans_matrix transform) lambda_trans_matrix transform)
{ {
struct loop *temp; struct loop *temp;
size_t i = 0; size_t i = 0;
size_t depth = 0; size_t depth = 0;
VEC(tree,gc) *new_ivs = NULL; VEC(tree,heap) *new_ivs = NULL;
tree oldiv; tree oldiv;
block_stmt_iterator bsi; block_stmt_iterator bsi;
...@@ -1889,7 +1886,7 @@ lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest, ...@@ -1889,7 +1886,7 @@ lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest,
ivvar = create_tmp_var (type, "lnivtmp"); ivvar = create_tmp_var (type, "lnivtmp");
add_referenced_tmp_var (ivvar); add_referenced_tmp_var (ivvar);
VEC_safe_push (tree, gc, new_ivs, ivvar); VEC_safe_push (tree, heap, new_ivs, ivvar);
newloop = LN_LOOPS (new_loopnest)[i]; newloop = LN_LOOPS (new_loopnest)[i];
...@@ -2015,9 +2012,9 @@ lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest, ...@@ -2015,9 +2012,9 @@ lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest,
} }
} }
} }
VEC_free (tree, heap, new_ivs);
} }
/* Returns true when the vector V is lexicographically positive, in /* Returns true when the vector V is lexicographically positive, in
other words, when the first nonzero element is positive. */ other words, when the first nonzero element is positive. */
...@@ -2213,7 +2210,7 @@ stmt_uses_op (tree stmt, tree op) ...@@ -2213,7 +2210,7 @@ stmt_uses_op (tree stmt, tree op)
static bool static bool
can_convert_to_perfect_nest (struct loop *loop, can_convert_to_perfect_nest (struct loop *loop,
VEC(tree,gc) *loopivs) VEC(tree,heap) *loopivs)
{ {
basic_block *bbs; basic_block *bbs;
tree exit_condition, phi; tree exit_condition, phi;
...@@ -2237,27 +2234,23 @@ can_convert_to_perfect_nest (struct loop *loop, ...@@ -2237,27 +2234,23 @@ can_convert_to_perfect_nest (struct loop *loop,
{ {
size_t j; size_t j;
tree stmt = bsi_stmt (bsi); tree stmt = bsi_stmt (bsi);
tree iv;
if (stmt == exit_condition if (stmt == exit_condition
|| not_interesting_stmt (stmt) || not_interesting_stmt (stmt)
|| stmt_is_bumper_for_loop (loop, stmt)) || stmt_is_bumper_for_loop (loop, stmt))
continue; continue;
/* If the statement uses inner loop ivs, we == screwed. */ /* If the statement uses inner loop ivs, we == screwed. */
for (j = 1; j < VEC_length (tree, loopivs); j++) for (j = 1; VEC_iterate (tree, loopivs, j, iv); j++)
if (stmt_uses_op (stmt, VEC_index (tree, loopivs, j))) if (stmt_uses_op (stmt, iv))
{ goto fail;
free (bbs);
return false;
}
/* If the bb of a statement we care about isn't dominated by /* If the bb of a statement we care about isn't dominated by
the header of the inner loop, then we are also screwed. */ the header of the inner loop, then we are also screwed. */
if (!dominated_by_p (CDI_DOMINATORS, if (!dominated_by_p (CDI_DOMINATORS,
bb_for_stmt (stmt), bb_for_stmt (stmt),
loop->inner->header)) loop->inner->header))
{ goto fail;
free (bbs);
return false;
}
} }
} }
} }
...@@ -2269,9 +2262,14 @@ can_convert_to_perfect_nest (struct loop *loop, ...@@ -2269,9 +2262,14 @@ can_convert_to_perfect_nest (struct loop *loop,
for (phi = phi_nodes (exitdest); phi; phi = PHI_CHAIN (phi)) for (phi = phi_nodes (exitdest); phi; phi = PHI_CHAIN (phi))
if (PHI_NUM_ARGS (phi) != 1) if (PHI_NUM_ARGS (phi) != 1)
return false; goto fail;
free (bbs);
return true; return true;
fail:
free (bbs);
return false;
} }
/* Transform the loop nest into a perfect nest, if possible. /* Transform the loop nest into a perfect nest, if possible.
...@@ -2313,10 +2311,10 @@ can_convert_to_perfect_nest (struct loop *loop, ...@@ -2313,10 +2311,10 @@ can_convert_to_perfect_nest (struct loop *loop,
static bool static bool
perfect_nestify (struct loops *loops, perfect_nestify (struct loops *loops,
struct loop *loop, struct loop *loop,
VEC(tree,gc) *lbounds, VEC(tree,heap) *lbounds,
VEC(tree,gc) *ubounds, VEC(tree,heap) *ubounds,
VEC(int,gc) *steps, VEC(int,heap) *steps,
VEC(tree,gc) *loopivs) VEC(tree,heap) *loopivs)
{ {
basic_block *bbs; basic_block *bbs;
tree exit_condition; tree exit_condition;
...@@ -2331,7 +2329,7 @@ perfect_nestify (struct loops *loops, ...@@ -2331,7 +2329,7 @@ perfect_nestify (struct loops *loops,
tree uboundvar; tree uboundvar;
tree stmt; tree stmt;
tree oldivvar, ivvar, ivvarinced; tree oldivvar, ivvar, ivvarinced;
VEC(tree,gc) *phis = NULL; VEC(tree,heap) *phis = NULL;
if (!can_convert_to_perfect_nest (loop, loopivs)) if (!can_convert_to_perfect_nest (loop, loopivs))
return false; return false;
...@@ -2345,7 +2343,7 @@ perfect_nestify (struct loops *loops, ...@@ -2345,7 +2343,7 @@ perfect_nestify (struct loops *loops,
/* Push the exit phi nodes that we are moving. */ /* Push the exit phi nodes that we are moving. */
for (phi = phi_nodes (olddest); phi; phi = PHI_CHAIN (phi)) for (phi = phi_nodes (olddest); phi; phi = PHI_CHAIN (phi))
{ {
VEC_reserve (tree, gc, phis, 2); VEC_reserve (tree, heap, phis, 2);
VEC_quick_push (tree, phis, PHI_RESULT (phi)); VEC_quick_push (tree, phis, PHI_RESULT (phi));
VEC_quick_push (tree, phis, PHI_ARG_DEF (phi, 0)); VEC_quick_push (tree, phis, PHI_ARG_DEF (phi, 0));
} }
...@@ -2370,6 +2368,7 @@ perfect_nestify (struct loops *loops, ...@@ -2370,6 +2368,7 @@ perfect_nestify (struct loops *loops,
add_phi_arg (phi, def, single_pred_edge (preheaderbb)); add_phi_arg (phi, def, single_pred_edge (preheaderbb));
} }
flush_pending_stmts (e); flush_pending_stmts (e);
VEC_free (tree, heap, phis);
bodybb = create_empty_bb (EXIT_BLOCK_PTR->prev_bb); bodybb = create_empty_bb (EXIT_BLOCK_PTR->prev_bb);
latchbb = create_empty_bb (EXIT_BLOCK_PTR->prev_bb); latchbb = create_empty_bb (EXIT_BLOCK_PTR->prev_bb);
......
...@@ -196,13 +196,12 @@ lambda_body_vector lambda_body_vector_compute_new (lambda_trans_matrix, ...@@ -196,13 +196,12 @@ lambda_body_vector lambda_body_vector_compute_new (lambda_trans_matrix,
void print_lambda_body_vector (FILE *, lambda_body_vector); void print_lambda_body_vector (FILE *, lambda_body_vector);
lambda_loopnest gcc_loopnest_to_lambda_loopnest (struct loops *, lambda_loopnest gcc_loopnest_to_lambda_loopnest (struct loops *,
struct loop *, struct loop *,
VEC(tree,gc) **, VEC(tree,heap) **,
VEC(tree,gc) **, VEC(tree,heap) **,
bool); bool);
void lambda_loopnest_to_gcc_loopnest (struct loop *, VEC(tree,gc) *, void lambda_loopnest_to_gcc_loopnest (struct loop *,
VEC(tree,gc) *, VEC(tree,heap) *, VEC(tree,heap) *,
lambda_loopnest, lambda_loopnest, lambda_trans_matrix);
lambda_trans_matrix);
static inline void lambda_vector_negate (lambda_vector, lambda_vector, int); static inline void lambda_vector_negate (lambda_vector, lambda_vector, int);
......
...@@ -243,9 +243,8 @@ void ...@@ -243,9 +243,8 @@ void
linear_transform_loops (struct loops *loops) linear_transform_loops (struct loops *loops)
{ {
unsigned int i; unsigned int i;
VEC(tree,gc) *oldivs = NULL; /* FIXME:These should really be on the VEC(tree,heap) *oldivs = NULL;
heap. (nathan 2005/04/15)*/ VEC(tree,heap) *invariants = NULL;
VEC(tree,gc) *invariants = NULL; /* FIXME:Likewise. */
for (i = 1; i < loops->num; i++) for (i = 1; i < loops->num; i++)
{ {
...@@ -371,8 +370,8 @@ linear_transform_loops (struct loops *loops) ...@@ -371,8 +370,8 @@ linear_transform_loops (struct loops *loops)
free_dependence_relations (dependence_relations); free_dependence_relations (dependence_relations);
free_data_refs (datarefs); free_data_refs (datarefs);
} }
VEC_free (tree, gc, oldivs); VEC_free (tree, heap, oldivs);
VEC_free (tree, gc, invariants); VEC_free (tree, heap, invariants);
scev_reset (); scev_reset ();
update_ssa (TODO_update_ssa); update_ssa (TODO_update_ssa);
rewrite_into_loop_closed_ssa (NULL); rewrite_into_loop_closed_ssa (NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment