diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2005-05-17 22:28:30 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2005-05-17 20:28:30 +0000 |
commit | 684aaf29c03351ad615ef8dd3ff52e1e312704c2 (patch) | |
tree | 67bc73975832051c0cb714b9f0601f6188091223 /gcc/tree-ssa-loop.c | |
parent | 7dc5e63544e434b07f0fcc0737a4caa371e5457b (diff) | |
download | gcc-684aaf29c03351ad615ef8dd3ff52e1e312704c2.tar.gz |
timevar.def (TV_SCEV_CONST): New timevar.
* timevar.def (TV_SCEV_CONST): New timevar.
* tree-optimize.c (init_tree_optimization_passes): Add
pass_scev_cprop.
* tree-pass.h (pass_scev_cprop): Declare.
* tree-scalar-evolution.c (scev_const_prop): New function.
* tree-scalar-evolution.h (scev_const_prop): Declare.
* tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
New.
* tree-cfg.c (replace_uses_by): Export.
* tree-flow.h (replace_uses_by): Declare.
From-SVN: r99860
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index f7a96fb2aa7..9e38e9199d0 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -286,6 +286,31 @@ struct tree_opt_pass pass_iv_canon = 0 /* letter */ }; +/* Propagation of constants using scev. */ + +static bool +gate_scev_const_prop (void) +{ + return true; +} + +struct tree_opt_pass pass_scev_cprop = +{ + "sccp", /* name */ + gate_scev_const_prop, /* gate */ + scev_const_prop, /* execute */ + NULL, /* sub */ + NULL, /* next */ + 0, /* static_pass_number */ + TV_SCEV_CONST, /* tv_id */ + PROP_cfg | PROP_ssa, /* properties_required */ + 0, /* properties_provided */ + 0, /* properties_destroyed */ + 0, /* todo_flags_start */ + TODO_dump_func, /* todo_flags_finish */ + 0 /* letter */ +}; + /* Record bounds on numbers of iterations of loops. */ static void |