summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-18 20:31:28 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-18 20:31:28 +0000
commitb0b70f22400f5ffb2748a3524bf812001c6d7bb2 (patch)
tree8706195a9d7fb08a7c0d067ba68332832e65eaa1 /gcc/tree-ssa-operands.c
parent56753e9de9650a172a06e1174847f987227402f5 (diff)
downloadgcc-b0b70f22400f5ffb2748a3524bf812001c6d7bb2.tar.gz
* tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
is_aliased. Update all users. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111249 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 01ca06bddc2..748ff5d62f6 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -1740,6 +1740,7 @@ access_can_touch_variable (tree ref, tree alias, HOST_WIDE_INT offset,
return true;
}
+
/* Add VAR to the virtual operands array. FLAGS is as in
get_expr_operands. FULL_REF is a tree that contains the entire
pointer dereference expression, if available, or NULL otherwise.
@@ -1780,7 +1781,6 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags,
if ((flags & opf_non_specific) && unmodifiable_var_p (var))
flags &= ~(opf_is_def | opf_kill_def);
-
/* The variable is not a GIMPLE register. Add it (or its aliases) to
virtual operands, unless the caller has specifically requested
not to add virtual operands (used when adding operands inside an
@@ -1845,7 +1845,8 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags,
It is also necessary to add bare defs on clobbers for
TMT's, so that bare TMT uses caused by pruning all the
aliases will link up properly with calls. */
- if (v_ann->is_alias_tag || none_added
+ if (v_ann->is_aliased
+ || none_added
|| (TREE_CODE (var) == TYPE_MEMORY_TAG && for_clobber))
append_v_may_def (var);
}
@@ -1862,13 +1863,14 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags,
/* Similarly, append a virtual uses for VAR itself, when
it is an alias tag. */
- if (v_ann->is_alias_tag || none_added)
+ if (v_ann->is_aliased || none_added)
append_vuse (var);
}
}
}
-/* Add *VAR_P to the appropriate operand array for INFO. FLAGS is as in
+
+/* Add *VAR_P to the appropriate operand array for S_ANN. FLAGS is as in
get_expr_operands. If *VAR_P is a GIMPLE register, it will be added to
the statement's real operands, otherwise it is added to virtual
operands. */
@@ -1884,8 +1886,9 @@ add_stmt_operand (tree *var_p, stmt_ann_t s_ann, int flags)
gcc_assert (SSA_VAR_P (var));
is_real_op = is_gimple_reg (var);
- /* If this is a real operand, the operand is either ssa name or decl.
- Virtual operands may only be decls. */
+
+ /* If this is a real operand, the operand is either an SSA name or a
+ decl. Virtual operands may only be decls. */
gcc_assert (is_real_op || DECL_P (var));
sym = (TREE_CODE (var) == SSA_NAME ? SSA_NAME_VAR (var) : var);