aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow.h
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.ibm.com>2012-06-26 16:27:50 +0000
committerWilliam Schmidt <wschmidt@gcc.gnu.org>2012-06-26 16:27:50 +0000
commitf9453c07d6f320f3c4c32c2d0ae992d2b3536261 (patch)
treea5e851050aaa607e1d45d0f74177b12f8e52507b /gcc/tree-flow.h
parent703ae70c629650dce1ca4a8383fdabbf422973bb (diff)
downloadgcc-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.h2
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);