summaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-10 15:06:52 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-10 15:06:52 +0000
commit379eaa7a047b84edba6ab5e21bb6c6d642e8394d (patch)
treedf5a6a69ffaa0951db1f12024f33e49aafeb2b4d /gcc/expmed.c
parent9247cc1cd56557eace12dd6aafb5152bf68463ea (diff)
downloadgcc-379eaa7a047b84edba6ab5e21bb6c6d642e8394d.tar.gz
* expmed.c (synth_mult): Initialize new_limit.latency before
making a recursive call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 10a95b3862a..231a33e5d9f 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;