aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pass.h
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2006-02-20 13:38:01 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2006-02-20 13:38:01 +0000
commita6c550f98551764dab0f1d5492c993fa94426688 (patch)
tree16d20e32d96535b3c2b5c91db8c2382c5b3fb541 /gcc/tree-pass.h
parentcf9d76188a45f75f60b307b8a776279d6ad5e630 (diff)
downloadgcc-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-pass.h')
-rw-r--r--gcc/tree-pass.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index baa60da..658b624 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -152,6 +152,8 @@ struct dump_file_info
#define PROP_rtl (1 << 8)
#define PROP_alias (1 << 9)
#define PROP_gimple_lomp (1 << 10) /* lowered OpenMP directives */
+#define PROP_tmt_usage (1 << 11) /* which TMT's are
+ used alone. */
#define PROP_trees \
(PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh | PROP_gimple_lomp)
@@ -212,6 +214,10 @@ struct dump_file_info
for the passes that are handed to register_dump_files. */
#define TODO_set_props (1 << 12)
+/* Set by passes that may make TMT's that were previously never used
+ in statements, used. */
+#define TODO_update_tmt_usage (1 << 13)
+
#define TODO_update_ssa_any \
(TODO_update_ssa \
| TODO_update_ssa_no_phi \