Commit 8b91e18c by Roger Sayle Committed by Roger Sayle

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
parent c32118f9
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,
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment