From: ebotcazou Date: Fri, 11 Jun 2010 21:53:59 +0000 (+0000) Subject: * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abc7c8e9e2e1c3b8f432942809233cdc4b6fb98e;p=thirdparty%2Fgcc.git * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the computed cost. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160636 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9cd65f766f4d..b8ec704eac17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-06-11 Sandra Loosemore + Eric Botcazou + + * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the + computed cost. + 2010-06-11 Uros Bizjak * config/i386/i386.md (unspec): New define_c_enum. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 53ad252d2fcc..32b893526538 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -3875,6 +3875,7 @@ get_computation_cost_at (struct ivopts_data *data, aratio = ratio > 0 ? ratio : -ratio; if (aratio != 1) cost.cost += multiply_by_cost (aratio, TYPE_MODE (ctype), speed); + return cost; fallback: if (can_autoinc)