diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2005-03-01 17:59:06 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2005-03-01 17:59:06 +0000 |
commit | fa55525216546e41650f27058aecb62a2456613a (patch) | |
tree | 126cecfe4e30597e3e21ba835c4893c2e3f19195 /gcc/tree-optimize.c | |
parent | 7cea62b4f5bef517d8d5aab0a2afdba000810693 (diff) | |
download | gcc-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-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index f4ad966..f934c99 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -384,6 +384,7 @@ init_tree_optimization_passes (void) NEXT_PASS (pass_may_alias); NEXT_PASS (pass_split_crit_edges); NEXT_PASS (pass_pre); + NEXT_PASS (pass_sink_code); NEXT_PASS (pass_loop); NEXT_PASS (pass_dominator); NEXT_PASS (pass_redundant_phi); |