diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2010-06-11 17:53:59 -0400 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2010-06-11 21:53:59 +0000 |
commit | 5914a70f0b669ed041d200b8b6e67a6e601e2c66 (patch) | |
tree | 5a659dcd255dd39d0d84af164d5a2b8f0d0b2424 /gcc | |
parent | ef1f5ea659a082a245151996b62f1287282398d8 (diff) | |
download | gcc-5914a70f0b669ed041d200b8b6e67a6e601e2c66.zip gcc-5914a70f0b669ed041d200b8b6e67a6e601e2c66.tar.gz gcc-5914a70f0b669ed041d200b8b6e67a6e601e2c66.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9cd65f7..b8ec704 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 53ad252..32b8935 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) |