expmed.c (div_cost): Replace with...
authorRoger Sayle <roger@eyesopen.com>
Tue, 29 Nov 2005 03:06:14 +0000 (03:06 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 29 Nov 2005 03:06:14 +0000 (03:06 +0000)
commita28b2ac66207b4727d05a2253c0c837684b5ff9e
tree22c40169a999edcdb342638b7a9521f3dc0b4ef5
parent0a6a4494e4fd89495478275905a4655c8cd6382e
expmed.c (div_cost): Replace with...

* expmed.c (div_cost): Replace with...
(sdiv_cost, udiv_cost): New.
(init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
Rename the div and mod fields, used to initialize sdiv_pow2_cheap
and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
(expand_divmod): Replace use of div_cost with either sdiv_cost
or udiv_cost depending upon the signedness of the operation.

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