This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Expand LSHIFT_EXPR as sequence of additions


On Wed, Jun 30, 2004 at 08:26:26PM -0600, Roger Sayle wrote:
> 	* expmed.c (expand_shift): Consider expanding LSHIFT_EXPR by a
> 	constant as a sequence of additions depending upon the rtx_costs.
> 	(synth_mult): Update the "observed" cost of a shift, based upon
> 	the above optimization.

Ok.

I suspect this enables quite a lot of cleanups in various backends.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]