expmed.c (expand_sdiv_pow2): New function to expand signed division by a positive...
authorRoger Sayle <roger@eyesopen.com>
Wed, 14 Jul 2004 13:50:39 +0000 (13:50 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 14 Jul 2004 13:50:39 +0000 (13:50 +0000)
commit39cab01994f20e38587d0ef91c9c87f2ef537078
tree5a6881133339e9a39477c6b3d100490239e9ccf2
parent51a61243e79e7be0543afc0cf1ac7db67a39ce5a
expmed.c (expand_sdiv_pow2): New function to expand signed division by a positive power of two...

* expmed.c (expand_sdiv_pow2): New function to expand signed division
by a positive power of two, split out from expand_divmod.  Provide
an alternate implementation when shifts are expensive.  Lower the
threshold for using a branchless implementation to BRANCH_COST >= 2.
(expand_divmod): Call expand_sdiv_pow2 for suitable divisions.

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