diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2006-02-20 13:38:01 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2006-02-20 13:38:01 +0000 |
commit | a6c550f98551764dab0f1d5492c993fa94426688 (patch) | |
tree | 16d20e32d96535b3c2b5c91db8c2382c5b3fb541 /gcc/tree.h | |
parent | cf9d76188a45f75f60b307b8a776279d6ad5e630 (diff) | |
download | gcc-a6c550f98551764dab0f1d5492c993fa94426688.zip gcc-a6c550f98551764dab0f1d5492c993fa94426688.tar.gz gcc-a6c550f98551764dab0f1d5492c993fa94426688.tar.bz2 |
tree.h (struct tree_memory_tag): Add is_used_alone member.
2006-02-20 Daniel Berlin <dberlin@dberlin.org>
* tree.h (struct tree_memory_tag): Add is_used_alone member.
(TMT_USED_ALONE): New macro.
* tree-pass.h (PROP_tmt_usage): New property.
(TODO_update_tmt_usage): New todo.
* tree-ssa-alias.c (updating_used_alone): New variable.
(recalculate_used_alone): New function.
(compute_may_aliases): Set updating_used_alone, call
recalculate_used_alone.
* tree-sra.c (pass_sra): Note that this pass destroys
PROP_tmt_usage, and add TODO_update_tmt_usage.
* tree-ssa-forwprop.c (pass_forwprop): Ditto.
* tree-flow.h (updating_used_alone): Prototype.
(recalculate_used_alone): Ditto.
* passes.c (execute_todo): Add code to set updating_used_alone,
and call recalculate.
* tree-ssa-operands.c (add_virtual_operand): Only append bare def
for clobber if used alone, and add assert to verify used_alone
status.
From-SVN: r111300
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2310,10 +2310,15 @@ struct tree_memory_tag GTY(()) { struct tree_decl_minimal common; unsigned int is_global:1; + unsigned int is_used_alone:1; }; #define MTAG_GLOBAL(NODE) (TREE_MEMORY_TAG_CHECK (NODE)->mtag.is_global) +/* This flag is true if a TMT is used as the vdef or vuse operand directly, + because the access had all of the TMT's aliases pruned from it. */ +#define TMT_USED_ALONE(NODE) (TYPE_MEMORY_TAG_CHECK (NODE)->mtag.is_used_alone) + struct tree_struct_field_tag GTY(()) { struct tree_memory_tag common; |