Commit 02ea8d06 by Jeff Law Committed by Jeff Law

tree-ssa-live.c (calculate_live_on_entry): Ignore virtual variables.

        * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
        variables.  Simplify slightly by using USE_OP/DEF_OP instead
        of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.

From-SVN: r81832
parent 90afe2c9
...@@ -61,6 +61,10 @@ ...@@ -61,6 +61,10 @@
2004-05-13 Jeff Law <law@redhat.com> 2004-05-13 Jeff Law <law@redhat.com>
* tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
variables. Simplify slightly by using USE_OP/DEF_OP instead
of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
* tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
rather than iterating through the blocks testing each bit in rather than iterating through the blocks testing each bit in
livein to initialize the worklist. livein to initialize the worklist.
......
...@@ -551,12 +551,10 @@ calculate_live_on_entry (var_map map) ...@@ -551,12 +551,10 @@ calculate_live_on_entry (var_map map)
basic_block bb; basic_block bb;
bitmap saw_def; bitmap saw_def;
tree phi, var, stmt; tree phi, var, stmt;
tree *vec; tree op;
edge e; edge e;
varray_type stack; varray_type stack;
block_stmt_iterator bsi; block_stmt_iterator bsi;
vuse_optype vuses;
vdef_optype vdefs;
use_optype uses; use_optype uses;
def_optype defs; def_optype defs;
stmt_ann_t ann; stmt_ann_t ann;
...@@ -610,39 +608,16 @@ calculate_live_on_entry (var_map map) ...@@ -610,39 +608,16 @@ calculate_live_on_entry (var_map map)
num = NUM_USES (uses); num = NUM_USES (uses);
for (i = 0; i < num; i++) for (i = 0; i < num; i++)
{ {
vec = USE_OP_PTR (uses, i); op = USE_OP (uses, i);
add_livein_if_notdef (live, saw_def, *vec, bb); add_livein_if_notdef (live, saw_def, op, bb);
}
vuses = VUSE_OPS (ann);
num = NUM_VUSES (vuses);
for (i = 0; i < num; i++)
{
var = VUSE_OP (vuses, i);
add_livein_if_notdef (live, saw_def, var, bb);
}
vdefs = VDEF_OPS (ann);
num = NUM_VDEFS (vdefs);
for (i = 0; i < num; i++)
{
var = VDEF_OP (vdefs, i);
add_livein_if_notdef (live, saw_def, var, bb);
} }
defs = DEF_OPS (ann); defs = DEF_OPS (ann);
num = NUM_DEFS (defs); num = NUM_DEFS (defs);
for (i = 0; i < num; i++) for (i = 0; i < num; i++)
{ {
vec = DEF_OP_PTR (defs, i); op = DEF_OP (defs, i);
set_if_valid (map, saw_def, *vec); set_if_valid (map, saw_def, op);
}
num = NUM_VDEFS (vdefs);
for (i = 0; i < num; i++)
{
var = VDEF_RESULT (vdefs, i);
set_if_valid (map, saw_def, var);
} }
} }
} }
......
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