This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Expand LSHIFT_EXPR as sequence of additions
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Jun 2004 20:55:04 -0700
- Subject: Re: [PATCH] Expand LSHIFT_EXPR as sequence of additions
- References: <Pine.LNX.4.44.0406302004410.31355-100000@www.eyesopen.com>
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~