(lea_max_mul): Delete.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 Mar 1993 23:38:07 +0000 (18:38 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 Mar 1993 23:38:07 +0000 (18:38 -0500)
commitb2fb324cbfb09352c24371289122455a62830138
tree4744a33f76e185ec9461bd6cc11e1f93ff3a6043
parent690ef02f086250157fe0988e752eb9f82e687119
(lea_max_mul): Delete.

(init_expmed): Delete unused variable I.
(enum alg_code): New tag alg_shift.  Document it.
(synth_mult): Delete unused variable N.  Handle new trivial case
first, for T <= 1.  Generalize shifting code to shift whenever a
number is even; use alg_shift for this.  Set best_alg->ops only in
trivial case.  Clean up cost calculation code for the `simple case' at
the end; use shiftadd_cost when appropriate.  Combine declarations of
Q and move to top of function.  Eliminate use of Q in factoring cases.
If we are getting too long a sequence for `struct algorithm' to
record, fail.
(expand_mult): Handle alg_shift instead of alg_add_t_m2 as first
operation.  In RLT emit loop, handle alg_shift; special case LOG == 0
for alg_add_t_m2 and alg_sub_t_m2.

From-SVN: r3750
gcc/expmed.c