diff options
author | Paolo Bonzini <bonzini@gcc.gnu.org> | 2005-05-17 09:55:44 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2005-05-17 09:55:44 +0000 |
commit | f8912a553ae9e4da3bcbdd9aaf802dd179434ebc (patch) | |
tree | 8e47af6adacdca86c18a58438d78923a88ce610b /gcc/tree-pass.h | |
parent | fb664a2cba8002496836cffe6381ad3f834df6cc (diff) | |
download | gcc-f8912a553ae9e4da3bcbdd9aaf802dd179434ebc.zip gcc-f8912a553ae9e4da3bcbdd9aaf802dd179434ebc.tar.gz gcc-f8912a553ae9e4da3bcbdd9aaf802dd179434ebc.tar.bz2 |
Makefile.in: Add tree-ssa-math-opts.c.
gcc:
2005-05-17 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in: Add tree-ssa-math-opts.c.
* expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
* fold-const.c (distribute_real_division): New.
(fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
* tree-pass.h (pass_cse_reciprocals): New.
* tree-optimize.c (init_tree_optimization_passes): Run it.
* tree-ssa-math-opts.c: New file.
* doc/passes.texi: Document the new pass.
gcc/testsuite:
2005-05-17 Paolo Bonzini <bonzini@gnu.org>
* gcc.dg/fold-div-1.c, gcc.dg/recip-1.c, gcc.dg/recip-2.c: New.
From-SVN: r99826
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r-- | gcc/tree-pass.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index 83fa184..0806822 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -196,6 +196,7 @@ extern struct tree_opt_pass pass_fold_builtins; extern struct tree_opt_pass pass_stdarg; extern struct tree_opt_pass pass_early_warn_uninitialized; extern struct tree_opt_pass pass_late_warn_uninitialized; +extern struct tree_opt_pass pass_cse_reciprocals; extern struct tree_opt_pass pass_warn_function_return; extern struct tree_opt_pass pass_warn_function_noreturn; extern struct tree_opt_pass pass_phiopt; |