This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR target/28946
On Tue, Sep 05, 2006 at 07:20:02AM -0600, Roger Sayle wrote:
> Taking a small step backwards perhaps we're missing a completely
> different optimization here... if (((unsigned)x >> 5) != 0) could
> probably be better expanded/transformed as if ((unsigned) x >= 32),
> especially on pentium-4s where the cost of a shift is significant.
Additionally, it would need no scratch registers on some targets (such
as i386).
--
Rask Ingemann Lambertsen