aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow.h
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2005-03-01 17:59:06 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2005-03-01 17:59:06 +0000
commitfa55525216546e41650f27058aecb62a2456613a (patch)
tree126cecfe4e30597e3e21ba835c4893c2e3f19195 /gcc/tree-flow.h
parent7cea62b4f5bef517d8d5aab0a2afdba000810693 (diff)
downloadgcc-fa55525216546e41650f27058aecb62a2456613a.zip
gcc-fa55525216546e41650f27058aecb62a2456613a.tar.gz
gcc-fa55525216546e41650f27058aecb62a2456613a.tar.bz2
Makefile.in (tree-ssa-sink.o): New.
2005-03-01 Daniel Berlin <dberlin@dberlin.org> * Makefile.in (tree-ssa-sink.o): New. (OBJS-common): Add tree-ssa-sink.o. * common.opt: Add -ftree-sink * opts.c (decode_options): flag_tree_sink is set at O1 or higher. * timevar.def (TV_TREE_SINK): new timevar. * tree-flow.h (is_hidden_global_store): Prototype. * tree-optimize.c (init_tree_optimization_passes): Add pass_sink_code. * tree-pass.h (pass_sink_code): New. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking for non-obvious global store store to is_hidden_global_store, and call that new function. * tree-ssa-sink.c: New file. * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink. * doc/passes.texi: Document forward store motion. * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test From-SVN: r95750
Diffstat (limited to 'gcc/tree-flow.h')
-rw-r--r--gcc/tree-flow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h
index 80ad686..82402c2 100644
--- a/gcc/tree-flow.h
+++ b/gcc/tree-flow.h
@@ -736,6 +736,8 @@ tree vn_lookup (tree, vuse_optype);
void vn_init (void);
void vn_delete (void);
+/* In tree-ssa-sink.c */
+bool is_hidden_global_store (tree);
/* In tree-sra.c */
void insert_edge_copies (tree, basic_block);