From 5e733b0261a2650d1574be49c7e155768003c59d Mon Sep 17 00:00:00 2001 From: dberlin Date: Tue, 1 Mar 2005 17:59:06 +0000 Subject: 2005-03-01 Daniel Berlin * 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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95750 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/opts.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index fcb8f6d5c1a..9ab16f0f562 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -501,6 +501,7 @@ decode_options (unsigned int argc, const char **argv) flag_tree_sra = 1; flag_tree_copyrename = 1; flag_tree_fre = 1; + flag_tree_sink = 1; if (!optimize_size) { -- cgit v1.2.1