]> gcc.gnu.org Git - gcc.git/commitdiff
expmed.c (synth_mult): Initialize new_limit.latency before making a recursive call.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 10 Dec 2004 15:06:52 +0000 (15:06 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 10 Dec 2004 15:06:52 +0000 (15:06 +0000)
* expmed.c (synth_mult): Initialize new_limit.latency before
making a recursive call.

From-SVN: r91992

gcc/ChangeLog
gcc/expmed.c

index 667977e4962ca63fcdb0308d626ba0270fb669b7..4c3730bd990b2519e99855186ef77967d8b5b230 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * expmed.c (synth_mult): Initialize new_limit.latency before
+       making a recursive call.
+
 2004-12-10  Nick Clifton  <nickc@redhat.com>
 
        * config/mn10300/mn10300.c (legitimate_address_p): Reject address
index 10a95b3862ab9a7db70538bd5e483f38c97dc7f2..231a33e5d9faa30e39e788060bec314a94364b9b 100644 (file)
@@ -2660,7 +2660,7 @@ synth_mult (struct algorithm *alg_out, unsigned HOST_WIDE_INT t,
            op_latency = add_cost[mode];
 
          new_limit.cost = best_cost.cost - op_cost;
-         new_limit.cost = best_cost.cost - op_latency;
+         new_limit.latency = best_cost.latency - op_latency;
          synth_mult (alg_in, t / d, &new_limit, mode);
 
          alg_in->cost.cost += op_cost;
This page took 0.090569 seconds and 5 git commands to generate.