diff options
author | Bill Schmidt <wschmidt@linux.ibm.com> | 2012-06-26 16:27:50 +0000 |
---|---|---|
committer | William Schmidt <wschmidt@gcc.gnu.org> | 2012-06-26 16:27:50 +0000 |
commit | f9453c07d6f320f3c4c32c2d0ae992d2b3536261 (patch) | |
tree | a5e851050aaa607e1d45d0f74177b12f8e52507b /gcc/tree-flow.h | |
parent | 703ae70c629650dce1ca4a8383fdabbf422973bb (diff) | |
download | gcc-f9453c07d6f320f3c4c32c2d0ae992d2b3536261.zip gcc-f9453c07d6f320f3c4c32c2d0ae992d2b3536261.tar.gz gcc-f9453c07d6f320f3c4c32c2d0ae992d2b3536261.tar.bz2 |
tree-pass.h (pass_strength_reduction): New decl.
gcc:
2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
* tree-pass.h (pass_strength_reduction): New decl.
* tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
(finalize_costs): Likewise.
* timevar.def (TV_TREE_SLSR): New timevar.
* gimple-ssa-strength-reduction.c: New.
* tree-flow.h (initialize_costs): New decl.
(finalize_costs): Likewise.
* Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
* passes.c (init_optimization_passes): Add pass_strength_reduction.
gcc/testsuite:
2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
* gcc.dg/tree-ssa/slsr-1.c: New test.
* gcc.dg/tree-ssa/slsr-2.c: Likewise.
* gcc.dg/tree-ssa/slsr-3.c: Likewise.
* gcc.dg/tree-ssa/slsr-4.c: Likewise.
From-SVN: r188989
Diffstat (limited to 'gcc/tree-flow.h')
-rw-r--r-- | gcc/tree-flow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 1978e10..cf78839 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -810,6 +810,8 @@ bool expr_invariant_in_loop_p (struct loop *, tree); bool stmt_invariant_in_loop_p (struct loop *, gimple); bool multiplier_allowed_in_address_p (HOST_WIDE_INT, enum machine_mode, addr_space_t); +void initialize_costs (void); +void finalize_costs (void); unsigned multiply_by_const_cost (HOST_WIDE_INT, enum machine_mode, bool); unsigned add_regs_cost (enum machine_mode, bool); unsigned multiply_regs_cost (enum machine_mode, bool); |