re PR middle-end/45098 (Missed induction variable optimization)
authorTom de Vries <tom@codesourcery.com>
Thu, 19 May 2011 09:03:12 +0000 (09:03 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 19 May 2011 09:03:12 +0000 (09:03 +0000)
commitbb8d292d395e5ac5aaf96ff44f58822918b94859
tree2296fc77fe0552e40381f5d9d1212ee5827ed489
parenta53c50249f684027ef6ca3957b0811e4ecb233e7
re PR middle-end/45098 (Missed induction variable optimization)

2011-05-19  Tom de Vries  <tom@codesourcery.com>

PR target/45098
* tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
get_loop_invariant_expr_id.
(get_loop_invariant_expr_id): Use get_expr_id.
(parm_decl_cost): New function.
(determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
Improve bound cost estimation.  Use different inv_expr_id for elim and
express cases.

From-SVN: r173894
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c