expmed.c (add_cost, [...]): Make arrays indexed by machine mode.
authorRoger Sayle <roger@eyesopen.com>
Tue, 8 Jun 2004 04:30:48 +0000 (04:30 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 8 Jun 2004 04:30:48 +0000 (04:30 +0000)
commit5877771853e65df4ebc5213c5dd098d2e49bf95a
treefa8c7b542da2f90c4e78015c04f02d97eafef476
parent9221325f10a58e13a35dfac007c6b5c906760679
expmed.c (add_cost, [...]): Make arrays indexed by machine mode.

* expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
Make arrays indexed by machine mode.  Rename negate_cost to neg_cost.
(init_expmed): Initialize these cost arrays as appropriate.
(store_bit_field, extract_bit_field): Correct whitespace.
(synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
word_mode or compute_mode as appropriate.

From-SVN: r82743
gcc/ChangeLog
gcc/expmed.c