aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2006-03-01 22:35:42 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2006-03-01 17:35:42 -0500
commit18cd8a03f87fb12895109b72832cbdcc27b39c69 (patch)
tree01a72a7a29f8e1046cda441db6c683b0feeb510d /gcc/tree-ssa-operands.c
parent61321991ff5f055015750ddf36444705b9921464 (diff)
downloadgcc-18cd8a03f87fb12895109b72832cbdcc27b39c69.zip
gcc-18cd8a03f87fb12895109b72832cbdcc27b39c69.tar.gz
gcc-18cd8a03f87fb12895109b72832cbdcc27b39c69.tar.bz2
tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
* tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG. Update all users. * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage. Update all users. (TODO_update_smt_usage): Rename from TODO_update_tmt_usage. Update all users. * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE. Update all users. * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag' to 'symbol_mem_tag'. Update all users. * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT rename. From-SVN: r111617
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 39c74ec..727e595 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -954,23 +954,24 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags,
This fixes the bug in gcc.c-torture/execute/20020503-1.c.
It is also necessary to add bare defs on clobbers for
- TMT's, so that bare TMT uses caused by pruning all the
+ SMT's, so that bare SMT uses caused by pruning all the
aliases will link up properly with calls. In order to
keep the number of these bare defs we add down to the
- minimum necessary, we keep track of which TMT's were used
- alone in statement defs or vuses. */
+ minimum necessary, we keep track of which SMT's were used
+ alone in statement vdefs or vuses. */
if (v_ann->is_aliased
|| none_added
- || (TREE_CODE (var) == TYPE_MEMORY_TAG && for_clobber
- && TMT_USED_ALONE (var)))
+ || (TREE_CODE (var) == SYMBOL_MEMORY_TAG
+ && for_clobber
+ && SMT_USED_ALONE (var)))
{
- /* Every bare tmt def we add should have TMT_USED_ALONE
+ /* Every bare SMT def we add should have SMT_USED_ALONE
set on it, or else we will get the wrong answer on
clobbers. */
-
- if (none_added && !updating_used_alone && aliases_computed_p
- && TREE_CODE (var) == TYPE_MEMORY_TAG)
- gcc_assert (TMT_USED_ALONE (var));
+ if (none_added
+ && !updating_used_alone && aliases_computed_p
+ && TREE_CODE (var) == SYMBOL_MEMORY_TAG)
+ gcc_assert (SMT_USED_ALONE (var));
append_v_may_def (var);
}
@@ -1084,7 +1085,7 @@ get_indirect_ref_operands (tree stmt, tree expr, int flags,
else
{
/* If PTR is not an SSA_NAME or it doesn't have a name
- tag, use its type memory tag. */
+ tag, use its symbol memory tag. */
var_ann_t v_ann;
/* If we are emitting debugging dumps, display a warning if
@@ -1106,8 +1107,8 @@ get_indirect_ref_operands (tree stmt, tree expr, int flags,
ptr = SSA_NAME_VAR (ptr);
v_ann = var_ann (ptr);
- if (v_ann->type_mem_tag)
- add_virtual_operand (v_ann->type_mem_tag, s_ann, flags,
+ if (v_ann->symbol_mem_tag)
+ add_virtual_operand (v_ann->symbol_mem_tag, s_ann, flags,
full_ref, offset, size, false);
}
}
@@ -1504,7 +1505,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags)
case SSA_NAME:
case STRUCT_FIELD_TAG:
- case TYPE_MEMORY_TAG:
+ case SYMBOL_MEMORY_TAG:
case NAME_MEMORY_TAG:
add_stmt_operand (expr_p, s_ann, flags);
return;