expmed.c (init_expmed): A signed modulus by a power of two is considered cheap if...

* expmed.c (init_expmed): A signed modulus by a power of two is
	considered cheap if its less than or equal to four instructions.

From-SVN: r85134
This commit is contained in:
Roger Sayle 2004-07-25 00:25:28 +00:00 committed by Roger Sayle
parent c32118f961
commit 8b91e18c05
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-07-24 Roger Sayle <roger@eyesopen.com>
* expmed.c (init_expmed): A signed modulus by a power of two is
considered cheap if its less than or equal to four instructions.
2004-07-25 Bernardo Innocenti <bernie@develer.com>
* ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,

View File

@ -217,7 +217,7 @@ init_expmed (void)
mul_cost[mode] = rtx_cost (&all.mult, SET);
sdiv_pow2_cheap[mode] = (rtx_cost (&all.div, SET) <= 2 * add_cost[mode]);
smod_pow2_cheap[mode] = (rtx_cost (&all.mod, SET) <= 2 * add_cost[mode]);
smod_pow2_cheap[mode] = (rtx_cost (&all.mod, SET) <= 4 * add_cost[mode]);
wider_mode = GET_MODE_WIDER_MODE (mode);
if (wider_mode != VOIDmode)