[PATCH] convert target_expmed macro accessors into inline functions

Richard Henderson rth@redhat.com
Fri Jul 27 19:15:00 GMT 2012


On 07/27/2012 04:41 AM, Nathan Froyd wrote:
> Tested on x86_64-unknown-linux-gnu.  OK to commit?
> 
> -Nathan
> 
> 	* 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.

Ok.  And thanks!


r~



More information about the Gcc-patches mailing list