diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-12-10 15:06:52 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-12-10 15:06:52 +0000 |
commit | 417c735c222642f006a3ab29655bf20664b64f32 (patch) | |
tree | df5a6a69ffaa0951db1f12024f33e49aafeb2b4d /gcc/expmed.c | |
parent | 5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f (diff) | |
download | gcc-417c735c222642f006a3ab29655bf20664b64f32.zip gcc-417c735c222642f006a3ab29655bf20664b64f32.tar.gz gcc-417c735c222642f006a3ab29655bf20664b64f32.tar.bz2 |
expmed.c (synth_mult): Initialize new_limit.latency before making a recursive call.
* expmed.c (synth_mult): Initialize new_limit.latency before
making a recursive call.
From-SVN: r91992
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index 10a95b3..231a33e 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -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; |