Commit ccbdbf0a by Jeff Law Committed by Jeff Law

cfgloop.h (struct loop): Remove unused "nodes" field.


	* cfgloop.h (struct loop): Remove unused "nodes" field.
	* timevar.def (TV_TREE_LOOP_BOUNDS): New.
	* tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
	instead of calling flow_bb_inside_loop_p for every basic block
	in the function.
	* tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.

From-SVN: r89932
parent db1de713
2004-10-31 Jeff Law <law@redhat.com>
* cfgloop.h (struct loop): Remove unused "nodes" field.
* timevar.def (TV_TREE_LOOP_BOUNDS): New.
* tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
instead of calling flow_bb_inside_loop_p for every basic block
in the function.
* tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
2004-10-31 Graham Stott <graham.stott@btinternet.com>
* config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
......
......@@ -97,9 +97,6 @@ struct loop
the loop latch. */
basic_block last;
/* Bitmap of blocks contained within the loop. */
sbitmap nodes;
/* Number of blocks contained within the loop. */
unsigned num_nodes;
......
......@@ -83,6 +83,7 @@ DEFTIMEVAR (TV_TREE_DCE , "tree conservative DCE")
DEFTIMEVAR (TV_TREE_CD_DCE , "tree aggressive DCE")
DEFTIMEVAR (TV_TREE_DSE , "tree DSE")
DEFTIMEVAR (TV_TREE_LOOP , "tree loop optimization")
DEFTIMEVAR (TV_TREE_LOOP_BOUNDS , "tree record loop bounds")
DEFTIMEVAR (TV_LIM , "loop invariant motion")
DEFTIMEVAR (TV_TREE_LOOP_IVCANON , "tree canonical iv creation")
DEFTIMEVAR (TV_TREE_LOOP_UNSWITCH , "tree loop unswitching")
......
......@@ -2204,14 +2204,16 @@ tree
find_data_references_in_loop (struct loop *loop, varray_type *datarefs)
{
bool dont_know_node_not_inserted = true;
basic_block bb;
basic_block bb, *bbs;
unsigned int i;
block_stmt_iterator bsi;
FOR_EACH_BB (bb)
bbs = get_loop_body (loop);
for (i = 0; i < loop->num_nodes; i++)
{
if (!flow_bb_inside_loop_p (loop, bb))
continue;
bb = bbs[i];
for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
{
tree stmt = bsi_stmt (bsi);
......@@ -2264,6 +2266,8 @@ find_data_references_in_loop (struct loop *loop, varray_type *datarefs)
compute_estimated_nb_iterations (bb->loop_father);
}
free (bbs);
return dont_know_node_not_inserted ? NULL_TREE : chrec_dont_know;
}
......
......@@ -317,7 +317,7 @@ struct tree_opt_pass pass_record_bounds =
NULL, /* sub */
NULL, /* next */
0, /* static_pass_number */
0, /* tv_id */
TV_TREE_LOOP_BOUNDS, /* tv_id */
PROP_cfg | PROP_ssa, /* properties_required */
0, /* properties_provided */
0, /* properties_destroyed */
......
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