diff options
author | Nathan Froyd <froydnj@gcc.gnu.org> | 2012-07-31 02:44:35 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2012-07-31 02:44:35 +0000 |
commit | 2a261cd35fa089540f230ec74b380c9a3c1b2932 (patch) | |
tree | 9c743c087dc8b5808d62742d25ee84c8a8d31f57 /gcc/tree-into-ssa.c | |
parent | b959718f2c5118e21bbc5a1dc1b943f005233ad8 (diff) | |
download | gcc-2a261cd35fa089540f230ec74b380c9a3c1b2932.zip gcc-2a261cd35fa089540f230ec74b380c9a3c1b2932.tar.gz gcc-2a261cd35fa089540f230ec74b380c9a3c1b2932.tar.bz2 |
expmed.h (NUM_MODE_VECTOR_INT): Define.
* expmed.h (NUM_MODE_VECTOR_INT): Define.
(struct expmed_op_cheap, struct expmed_op_costs): New structures.
(struct target_expmed): Convert x_mul_highpart_cost and
x_mul_widen_cost fields to be indexed by integer modes.
Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
of type struct expmed_op_cheap. Convert other cost fields to be
of type struct_expmed_op_costs.
(mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
indexing of respective fields.
(expmed_op_cheap_ptr): New function.
(sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
(expmed_op_cost_ptr): New function.
(add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
sdiv_cost_ptr, udiv_cost_ptr): Call it.
From-SVN: r189994
Diffstat (limited to 'gcc/tree-into-ssa.c')
0 files changed, 0 insertions, 0 deletions