tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the computed cost.

* tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
	computed cost.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r160636
This commit is contained in:
Sandra Loosemore 2010-06-11 17:53:59 -04:00 committed by Eric Botcazou
parent ef1f5ea659
commit 5914a70f0b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
computed cost.
2010-06-11 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (unspec): New define_c_enum.

View File

@ -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)