expmed.h (alg_hash, [...]): Delete macro definitions and re-purpose as inline functions.
authorNathan Froyd <froydnj@gcc.gnu.org>
Fri, 27 Jul 2012 21:01:16 +0000 (21:01 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Fri, 27 Jul 2012 21:01:16 +0000 (21:01 +0000)
commit5322d07e9c687b4340c4043a11518973e2d6ed9f
treee8b3b1b9c2c77f0a8c479de66cf8c543700e8f44
parentccbc132f872fbe614066238abd97301248f3d5f8
expmed.h (alg_hash, [...]): Delete macro definitions and re-purpose as inline functions.

* expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
macro definitions and re-purpose as inline functions.
(alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
New functions.
(convert_cost_ptr): New function, split out from...
(set_convert_cost, convert_cost): ...here.
* expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
* gimple-ssa-strength-reduction.c: Likewise.

From-SVN: r189919
gcc/ChangeLog
gcc/expmed.c
gcc/expmed.h
gcc/gimple-ssa-strength-reduction.c
gcc/tree-ssa-loop-ivopts.c