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
This commit is contained in:
Kazu Hirata 2004-12-10 15:06:52 +00:00 committed by Kazu Hirata
parent 5542b23d7b
commit 417c735c22
2 changed files with 6 additions and 1 deletions

View 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

View 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;