summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-live.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 05:08:55 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 05:08:55 +0000
commit7e0c7e2e8e2c055a2751d8dbd5cdd4bd70fe316e (patch)
tree0b1887d59955d558b6642e832178665cb0476947 /gcc/tree-ssa-live.c
parent1acf029802710ffdf59be2af26c8ae49247c394e (diff)
downloadgcc-7e0c7e2e8e2c055a2751d8dbd5cdd4bd70fe316e.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r--gcc/tree-ssa-live.c35
1 files changed, 5 insertions, 30 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c
index 28c3d578581..3a166a7c21c 100644
--- a/gcc/tree-ssa-live.c
+++ b/gcc/tree-ssa-live.c
@@ -551,12 +551,10 @@ calculate_live_on_entry (var_map map)
basic_block bb;
bitmap saw_def;
tree phi, var, stmt;
- tree *vec;
+ tree op;
edge e;
varray_type stack;
block_stmt_iterator bsi;
- vuse_optype vuses;
- vdef_optype vdefs;
use_optype uses;
def_optype defs;
stmt_ann_t ann;
@@ -610,39 +608,16 @@ calculate_live_on_entry (var_map map)
num = NUM_USES (uses);
for (i = 0; i < num; i++)
{
- vec = USE_OP_PTR (uses, i);
- add_livein_if_notdef (live, saw_def, *vec, 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);
+ op = USE_OP (uses, i);
+ add_livein_if_notdef (live, saw_def, op, bb);
}
defs = DEF_OPS (ann);
num = NUM_DEFS (defs);
for (i = 0; i < num; i++)
{
- vec = DEF_OP_PTR (defs, i);
- set_if_valid (map, saw_def, *vec);
- }
-
- num = NUM_VDEFS (vdefs);
- for (i = 0; i < num; i++)
- {
- var = VDEF_RESULT (vdefs, i);
- set_if_valid (map, saw_def, var);
+ op = DEF_OP (defs, i);
+ set_if_valid (map, saw_def, op);
}
}
}