Hi, > Resubmitting with comment. > > This improves the estimation of cost of bound calculation: > - It tries to estimate whether an ssa_name can be used in the loop > at zero cost, or whether a regcopy is needed to keep the ssa_name > alive during the loop, and counts the cost of the regcopy. > - It adjusts the cost of a complex loop bound: if a complex loop bound > uses more that 1 invariant, it is counted as a new single invariant. > - It estimates the cost of an int bound at zero. > > 2011-05-05 Tom de Vries <t...@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.
OK, Zdenek