This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR middle-end/18293: Fast-path expand_mult for 2^N
- 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: Tue, 7 Dec 2004 17:54:45 -0800
- Subject: Re: [PATCH] PR middle-end/18293: Fast-path expand_mult for 2^N
- References: <Pine.LNX.4.44.0412071652230.16350-100000@www.eyesopen.com>
On Tue, Dec 07, 2004 at 05:22:15PM -0700, Roger Sayle wrote:
> PR middle-end/18293
> * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
> (expand_mult): Special case powers of two to avoid synth_mult.
> * loop.c (product_cheap_p): Handle case where expand_mult does
> require/generate any instructions (i.e. multiplication by zero).
Ok.
r~